azure IoT edge identity translation with the python sdk

Arne Joris 1 Reputation point
2021-12-02T18:11:17.257+00:00

I am trying to implement an IoT Edge module doing identity translation for bluetooth devices. This requires a client instance for each device to be created and stay open to receive digital twin updates etc..

The azure-iot-device ptyhon library seems to have a known problem with multiple client instances, as noted here. Does that mean identity translation is not supported with the python SDK?

Azure IoT Edge
Azure IoT Edge
An Azure service that is used to deploy cloud workloads to run on internet of things (IoT) edge devices via standard containers.
561 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sander van de Velde | MVP 31,211 Reputation points MVP
    2021-12-05T13:37:41+00:00

    Hello @Arne Joris ,

    identity translation pattern is not offered by default, you have to implement it yourself.

    Check out this example with an explanation of the concept.

    Basically, you have to instantiate a separate device client for each source. This could end up in an array with multiple device clients.

    So, the limitation you noted, could be a real blocker.

    As an alternative, you could switch to another language SDK. (Here is a sample written in NodeJS)

    Or, if the number of devices to connect is limited, you could create separate modules, each with its own device client. The Azure IoT Edge runtime supports up to 50 modules (including system modules like the edgeagent and edgehub).

    0 comments No comments