Do you have an idea or suggestion based on your experience with Azure IoT Edge?

BLE Sample

Will a BLE sample be available?

As I understand, it will require the module container to run in privileged mode to gain access to hardware devices... Is this supported?

14 votes
Sign in
(thinking…)
Sign in with: Microsoft
Signed in as (Sign out)

We’ll send you updates on this idea

Anonymous shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

8 comments

Sign in
(thinking…)
Sign in with: Microsoft
Signed in as (Sign out)
Submitting...
  • Gaurav Agarwal commented  ·   ·  Flag as inappropriate

    It already works! Your module should be deployed with the following container create options.
    Note that I have also passed the network to be used as "host". For some reason it was important in my case. See if it works otherwise for you.

    "createOptions": "
    {
    "NetworkingConfig":
    {
    "EndpointsConfig":
    {
    "host":{}
    }
    },
    "Env":["DISPLAY=:0"],
    "HostConfig":
    {
    "Mounts":
    [
    {
    "Target":"/dev",
    "Source":"/dev",
    "Type":"bind"
    }
    ],
    "Privileged":true,
    "NetworkMode":"host"
    }
    }"

  • Felix M commented  ·   ·  Flag as inappropriate

    I think I am looking for exactly the same. Have TI SensorTag to gather temperature data, forwarding this to an Raspberry Pi 3b+ running Azure IoT Edge on Raspbian and forwarding this to Azure IoT hub. Is there any code sample how to access BLE devices in a containerized environment out there?

Feedback and Knowledge Base