We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b7f44c commit 4406b4dCopy full SHA for 4406b4d
src/NetWizard.cpp
@@ -411,10 +411,12 @@ void NetWizard::removeParameter(NetWizardParameter* parameter) {
411
}
412
413
void NetWizard::_connect(const char* ssid, const char* password, bool autoreconnect) {
414
- // Set auto reconnect
415
- if (autoreconnect) {
416
- WiFi.setAutoReconnect(true);
417
- }
+ #if defined(ESP8266) || defined(ESP32)
+ // Set auto reconnect
+ if (autoreconnect) {
+ WiFi.setAutoReconnect(true);
418
+ }
419
+ #endif
420
// Set hostname
421
WiFi.setHostname(_nw.hostname.c_str());
422
// Connect to WiFi
0 commit comments