diff --git a/libraries/ESP32/examples/Time/SimpleTime/SimpleTime.ino b/libraries/ESP32/examples/Time/SimpleTime/SimpleTime.ino index f8b2e4391f6..3a8aa50c98d 100644 --- a/libraries/ESP32/examples/Time/SimpleTime/SimpleTime.ino +++ b/libraries/ESP32/examples/Time/SimpleTime/SimpleTime.ino @@ -33,6 +33,9 @@ void setup() { Serial.begin(115200); + // configure WiFi + WiFi.mode(WIFI_STA); + // set notification call-back function sntp_set_time_sync_notification_cb( timeavailable );