Most MQTT brokers require unique device IDs. You cannot scale your project without a mechanism to automatically generate device IDs for your device that persist across reboots. We can do that with this new module we write using Preferences.h.
For more on "All Things IoT" — 🔔 Subscribe
⏱️ Chapters:
0:00 - Intro & Today's Plan
0:48 - Pull code for a working MQTT device
3:00 - Integrate an automatic device ID generator
9:57 - Wrap it up
🛠️ What You'll Learn In This Video:
How to generate random ID's that can be used to identify your devices
How to store those ID's on disk using Preferences.h
How to check on boot if an ID has already been written
How to properly integrate this into your MQTT code
🖥️ Code Examples:
Start Point: https://github.com/OhioIoT-MQTT-Examp...
End Point: https://github.com/OhioIoT-MQTT-Examp...
🔗 Resources:
Espressif Documentation: https://espressif-docs.readthedocs-ho...
****************************************************************************************************
****************************************************************************************************
OhioIoT is an IoT platform designed and built for small-scale IoT projects (https://www.ohioiot.com).
If you are interested in building IoT systems, checkout the page and leave your email, so we can
discuss. -Larry
****************************************************************************************************
****************************************************************************************************