We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b494b55 commit b79a655Copy full SHA for b79a655
src/WiFiConnectionHandler.cpp
@@ -91,6 +91,13 @@ NetworkConnectionState WiFiConnectionHandler::update_handleInit()
91
92
if (WiFi.status() != WL_CONNECTED && _flags.settings_provided)
93
{
94
+ if (strlen(_settings.wifi.ssid) == 0) {
95
+ DEBUG_WARNING("Provided empty ssid, please provide a valid one");
96
+ _flags.settings_provided = false;
97
+
98
+ return NetworkConnectionState::CHECK;
99
+ }
100
101
WiFi.begin(_settings.wifi.ssid, _settings.wifi.pwd);
102
#if defined(ARDUINO_ARCH_ESP8266)
103
/* Wait connection otherwise board won't connect */
0 commit comments