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