One last tip – a dynamic SSID and password
From our examples, we’ve been coding in our SSID and password information. This is okay, but if we do want our device to change locations or to use another network, what do we do? We must reprogram our ESP32. There is another solution. We can create a Wi-Fi manager.
This is beyond the scope of the book, as our focus is on the wearables themselves. However, a Wi-Fi manager will help you move forward with making your own wearables. You can come back to this little section later when you have completed more ESP32 projects and you want to implement one; it’s an advanced skill.
The ESP32 has two main modes for Wi-Fi. They are Station Mode, where the device connects to another Wi-Fi router, and Access Point Mode, where the device acts as the Wi-Fi router. We want the Wi-Fi credentials to come from us or a user. This means that the ESP32 will need to be in Access Point Mode first, then it waits for credentials, then it...