fix bug with smartconfig

Enables wifi STA mode in order to start SmartConfig correctly
This commit is contained in:
Diego Pérez 2019-05-14 09:15:43 -04:00 committed by GitHub
parent 0b6c62f5f9
commit 04d48af04e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -159,6 +159,7 @@ void WifiConfig(uint8_t type)
#ifdef USE_SMARTCONFIG
else if (WIFI_SMARTCONFIG == wifi_config_type) {
AddLog_P(LOG_LEVEL_INFO, S_LOG_WIFI, PSTR(D_WCFG_1_SMARTCONFIG " " D_ACTIVE_FOR_3_MINUTES));
WiFi.mode(WIFI_STA); // Disable AP mode
WiFi.beginSmartConfig();
}
#endif // USE_SMARTCONFIG