Skip to content

Commit 4f41577

Browse files
committed
fix(esp32): 🐛 Fixed "Invalid mbox" in the Wi-Fi example
1 parent bc769fd commit 4f41577

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libraries/ESP32/examples/Time/SimpleTime/SimpleTime.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ void setup()
3333
{
3434
Serial.begin(115200);
3535

36+
// configure WiFi
37+
WiFi.mode(WIFI_STA);
38+
3639
// set notification call-back function
3740
sntp_set_time_sync_notification_cb( timeavailable );
3841

0 commit comments

Comments
 (0)