How to handle multiple device clients provisioned through DPS(Group Symmetric key) to IoT Central from a gateway device

215 Views Asked by At

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

1

There are 1 best solutions below

0
lmasieri On

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