Skip to content

Commit

Permalink
fix: changes the code to actually connect to the WiFi in roder to get…
Browse files Browse the repository at this point in the history
… time and date
  • Loading branch information
SuGlider authored Feb 17, 2024
1 parent 4f41577 commit cd509c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/ESP32/examples/Time/SimpleTime/SimpleTime.ino
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ void setup()
{
Serial.begin(115200);

// configure WiFi
WiFi.mode(WIFI_STA);
// configure WiFi STA and connect in order to get the current time and date.
WiFi.begin(ssid, password);

// set notification call-back function
sntp_set_time_sync_notification_cb( timeavailable );
Expand Down

0 comments on commit cd509c8

Please sign in to comment.