How to provision ESP32 based device to IOT hub?
Posted: Tue Nov 19, 2019 7:49 am
Hi all,
I am a question about provisioning an ESP32 device to Microsoft Azure IOT hub (or any other IOT based cloud sevice).
Basically, I am using MQTT to publish to a topic and subscribe a topic. I want to be able to upload sensor data to the cloud and also remotely control a device (through the cloud) via a mobile phone app. While I am prototyping this application, I do not have any problems. I just need to hardcode the MQTT server address, port number, username and password into the ESP device.
However, if I am exploring this in a commercial application, where users will buy a ESP32 based sensor product. They install the manufacturer's app on the phone, register an account with them via the app. Then the user should be able to start using the device. They can on/off the device via the app or read sensor data from the app.
So as a manufacturer, how do I actually set this up at the back end? I presume there should be an automated way to provision (if this is the right word to use) the device to the cloud service and auto create a MQTT username and password for the device? Is there any services out there that can do this? Are there any tutorials, examples, documentations that I can refer to? Eg. Azure, IBM, Amazon AWS, Google etc?
Thanks in advance!
I am a question about provisioning an ESP32 device to Microsoft Azure IOT hub (or any other IOT based cloud sevice).
Basically, I am using MQTT to publish to a topic and subscribe a topic. I want to be able to upload sensor data to the cloud and also remotely control a device (through the cloud) via a mobile phone app. While I am prototyping this application, I do not have any problems. I just need to hardcode the MQTT server address, port number, username and password into the ESP device.
However, if I am exploring this in a commercial application, where users will buy a ESP32 based sensor product. They install the manufacturer's app on the phone, register an account with them via the app. Then the user should be able to start using the device. They can on/off the device via the app or read sensor data from the app.
So as a manufacturer, how do I actually set this up at the back end? I presume there should be an automated way to provision (if this is the right word to use) the device to the cloud service and auto create a MQTT username and password for the device? Is there any services out there that can do this? Are there any tutorials, examples, documentations that I can refer to? Eg. Azure, IBM, Amazon AWS, Google etc?
Thanks in advance!