Fix possible wifi connection error

Fix possible wifi connection error (#4044, #4083)
This commit is contained in:
Theo Arends 2018-10-16 14:00:14 +02:00
parent ecd39741aa
commit ae28a50dc7
2 changed files with 3 additions and 1 deletions

View File

@ -5,6 +5,7 @@
* Fix RfRaw and SerialSend5 regression from 6.2.1.15 (#4072) * Fix RfRaw and SerialSend5 regression from 6.2.1.15 (#4072)
* Fix Sonoff Bridge RfRaw receive (#4080) * Fix Sonoff Bridge RfRaw receive (#4080)
* Add support for Tuya Dimmer (#469, #4075) * Add support for Tuya Dimmer (#469, #4075)
* Fix possible wifi connection error (#4044, #4083)
* *
* 6.2.1.15 20181012 * 6.2.1.15 20181012
* Fix Color Temperature slider functionality regression from 6.2.1.5 (#4037) * Fix Color Temperature slider functionality regression from 6.2.1.5 (#4037)

View File

@ -1349,7 +1349,8 @@ void WifiBegin(uint8_t flag)
AddLog_P(LOG_LEVEL_DEBUG, S_LOG_WIFI, PSTR(D_PATCH_ISSUE_2186)); AddLog_P(LOG_LEVEL_DEBUG, S_LOG_WIFI, PSTR(D_PATCH_ISSUE_2186));
WiFi.mode(WIFI_OFF); // See https://github.com/esp8266/Arduino/issues/2186 WiFi.mode(WIFI_OFF); // See https://github.com/esp8266/Arduino/issues/2186
#endif #endif
WiFi.persistent(false); // Solve possible wifi init errors
WiFi.persistent(false); // Solve possible wifi init errors (re-add at 6.2.1.16 #4044, #4083)
WiFi.disconnect(true); // Delete SDK wifi config WiFi.disconnect(true); // Delete SDK wifi config
delay(200); delay(200);
WiFi.mode(WIFI_STA); // Disable AP mode WiFi.mode(WIFI_STA); // Disable AP mode