The method WiFi.begin() has an override allowing to connect to a specific SSID with a specified WPA Key. When running workshops, we usually come with our own WiFi Router. We then could embed these credentials into the code for module 1.
The code should :
[ ] Define static values of SSID and passphrase at the top of the sketch file
[ ] Try first to connect using these credentials
[ ] If not successful, fallback on info stored in EEPROM and configured from the WiFi AP Mode of the board
[ ] Display infos on the screen for all of these steps.
The method
WiFi.begin()
has an override allowing to connect to a specific SSID with a specified WPA Key. When running workshops, we usually come with our own WiFi Router. We then could embed these credentials into the code for module 1.The code should :