Skip to content

Commit d8edd31

Browse files
committed
networkId: restore WiFi timeout after begin
1 parent bf2c4bb commit d8edd31

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/networkId.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ bool networkId::begin() {
1818
defined(ARDUINO_UNOR4_WIFI)
1919
WiFi.setTimeout(0);
2020
int result = WiFi.begin("In33dm4c4ddr35", "In33dm4c4ddr35");
21+
WiFi.setTimeout(10000);
2122
return (result != WL_NO_SHIELD) ? true : false;
2223
#elif defined(ARDUINO_PORTENTA_C33)
2324
return true;
@@ -33,6 +34,7 @@ bool networkId::begin() {
3334
defined(ARDUINO_GIGA)
3435
WiFi.setTimeout(0);
3536
int result = WiFi.begin("In33dm4c4ddr35", "In33dm4c4ddr35", ENC_TYPE_TKIP);
37+
WiFi.setTimeout(10000);
3638
return ( result != WL_NO_SHIELD) ? true : false;
3739
#elif defined(ARDUINO_OPTA)
3840
Ethernet.begin(NULL, 0, 0);

0 commit comments

Comments
 (0)