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:
[x] Create enrollment group in the IoT Hub
[x] Add a page to obtain the derived key in the Front end by entering the deviceID
[x] Deploy web app from this repo
[x] Find a way to store the Enrollment Group Private Key in the back end server
[x] Add a method to obtain the derivedKey in the back end
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: