mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 08:19:52 +03:00
force wifi_mode to AP when fallback to AP - https://github.com/proddy/EMS-ESP/issues/187
This commit is contained in:
@@ -316,6 +316,9 @@ void MyESP::_wifiCallback(justwifi_messages_t code, char * parameter) {
|
|||||||
|
|
||||||
if (code == MESSAGE_ACCESSPOINT_CREATING) {
|
if (code == MESSAGE_ACCESSPOINT_CREATING) {
|
||||||
myDebug_P(PSTR("[WIFI] Creating access point"));
|
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) {
|
if (code == MESSAGE_ACCESSPOINT_FAILED) {
|
||||||
|
|||||||
Reference in New Issue
Block a user