The program shows how to implement the famous SBB station clock with its unique stop-and-go second hand. The clock gets its time from the internet, so a Wi-Fi connection is required.
The program attempts to connect to the local Wi-Fi network using the login credentials specified in the code. If this fails, the clock sets up the AutoConnectAP access point. Now connect your mobile device to this access point and open the web address 192.168.4.1 in your browser. A list of nearby networks will be displayed. Select your router’s SSID from the list and then enter the corresponding password.
Once the connection is established, the login credentials
are stored in
the ESP32’s non-volatile memory. From now
on, the clock will
automatically connect to the Wi-Fi network
whenever it is turned off
and back on.
Tap the screenshot to the left to see the stop-and-go behavior in a video.
