1

We have a gateway device(not running IoT edge runtime). We want to connect multiple BLE or Zigbee sensors to the gateway and provision/register them through our gateway device to IoT Central as different devices using group symmetric key approach.

We have seen multiple sample codes for the provisioning and registering the devices using group symmetric key to generate device-specific SAS key. But these don't have an approach for handling multiple device clients after registering and connecting to IoT Central

python sdk provisioning with group symmetric key

iot_central_python_sample

After connecting the device we need to use device client of the SDK to send telemetry and receive commands to/from IoT Central.

Consider if we want to use the same code for multiple sensors, we need to have multiple device clients(threads) running.

Please suggest a better approach to handle multiple devices for sending telemetry and receiving commands to/from IoT Central

  • The azure-iot-device python SDK has a known problem with multiple client instances as noted https://github.com/Azure/azure-iot-sdk-python/wiki/pitfalls#its-easy-to-create-multiple-client-instances-and-cause-instabilit . I think this implies that you cannot use python for your edge module if you want to do identity translation (which is what It think you are trying to do), only protocol translation. – Solar.gy Dec 02 '21 at 18:20

1 Answers1

0

This might help with your use case: https://github.com/Larouex/IoTCNanoBLE33

lmasieri
  • 26
  • 2