From d820e72994c15e2b908ec4a2e2e7fa3ad9ee3d3c Mon Sep 17 00:00:00 2001 From: Paul Date: Sun, 22 Sep 2019 12:45:57 +0200 Subject: [PATCH] force wifi_mode to AP when fallback to AP - https://github.com/proddy/EMS-ESP/issues/187 --- src/MyESP.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/MyESP.cpp b/src/MyESP.cpp index dfd863f8f..d8b40810e 100644 --- a/src/MyESP.cpp +++ b/src/MyESP.cpp @@ -316,6 +316,9 @@ void MyESP::_wifiCallback(justwifi_messages_t code, char * parameter) { if (code == MESSAGE_ACCESSPOINT_CREATING) { myDebug_P(PSTR("[WIFI] Creating access point")); + // for setting of wifi mode to AP and save + _network_wmode = 1; + (void)_fs_writeConfig(); } if (code == MESSAGE_ACCESSPOINT_FAILED) {