ERNI-CoP-IoT / dust-measurement-network

Dust Measurement Network - air pollution data measurement
https://dmn.azurewebsites.net/
MIT License
1 stars 0 forks source link

UserStory - Add devices to the IoT Hub network automatically #54

Closed ArmandoAmoros closed 2 years ago

ArmandoAmoros commented 2 years ago

The user needs an automatic way to add her/his device to the dust measurement network (IoT Hub). This is DONE when the customer can retrieve a derivedKey bounded to her/his deviceID to connect automatically to the IoT Hub without previous registration.

In order to add devices that communicate through MQTT directly with the IoT Hub, it is necessary to create an enrollment group. Such a group has assigned a primary secret Key; this key can be used together with a deviceID to obtain a device derivedKey (Procedure can be found here). Once the derived key is obtained, it is possible to provision the device and obtain a connection string to connect directly to the IoT Hub. This transactions registers the device automatically in the IoT Hub.

The following steps are necessary: