I am working on a project, where I am using the Azure FreeRTOS Middleware Stack on ESP32.
I would like to introduce DPS to provision all my 3K upcoming devices.
The Stack has got a DPS option, but I would like some advice as I would like to generate one global bin file, for all 3K devices. I would like DPS to create the device on IoT Hub and also provide the necessary keys to the device so it can generate the SAS token for each device id.
The device ID will be either the serial number or mac number of the ESP32 device.
What i want to avoid is creating a seperate bin file for each device.
Can this be possible? or am i miss understanding DPS?
DPS will not provide you neccessary keys for each device. To work with Azure IoT (either DPS or Hub), you must have per-device credential flash to your device, this is usually done during manufacturing phase.
When you use DPS group enrollment, you get a group key from DPS and use a formula to generate per-device key (hash the group key and enrollment/device id), you need a method to flash 3k keys to 3k devices on production line.