Skip to content

Commit

Permalink
networkId: restore WiFi timeout after begin
Browse files Browse the repository at this point in the history
  • Loading branch information
pennam committed Jan 23, 2025
1 parent bf2c4bb commit d8edd31
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/networkId.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ bool networkId::begin() {
defined(ARDUINO_UNOR4_WIFI)
WiFi.setTimeout(0);
int result = WiFi.begin("In33dm4c4ddr35", "In33dm4c4ddr35");
WiFi.setTimeout(10000);
return (result != WL_NO_SHIELD) ? true : false;
#elif defined(ARDUINO_PORTENTA_C33)
return true;
Expand All @@ -33,6 +34,7 @@ bool networkId::begin() {
defined(ARDUINO_GIGA)
WiFi.setTimeout(0);
int result = WiFi.begin("In33dm4c4ddr35", "In33dm4c4ddr35", ENC_TYPE_TKIP);
WiFi.setTimeout(10000);
return ( result != WL_NO_SHIELD) ? true : false;
#elif defined(ARDUINO_OPTA)
Ethernet.begin(NULL, 0, 0);
Expand Down

0 comments on commit d8edd31

Please sign in to comment.