Notes
Notes
Components :
Method 1
Assign unique id to each device before hand. Embed this ID in the firmware of each ESP32
during programming.
Method2
Registration Process
Method: When a device first connects to the local network, it can register itself with a central
server that assigns it an ID.
Implementation: Implement a simple registration protocol where each new device sends a
request to a server, and the server responds with a unique ID.
To keep up with time, two ways ;
a. Real-Time Clock (RTC) Module: Integrate an RTC module with your ESP32.
b. Network Time Protocol (NTP): If the ESP32 is connected to the internet, you can query a
network time server to get the current time. This can be done using an NTP client library.
Develop your firmware using the Arduino IDE or PlatformIO. Compile the code to produce a
binary file.
Locate the binary file: After compiling, the Arduino IDE generates a .bin file
When the ESP32 downloads the new firmware from the URL, it needs to write the
new firmware to its flash memory and then reboot to run the updated firmware.
This process is handled by the Update class in the Arduino core for ESP32.
Basic code