WiFi on AP mode stopped working (forever?) after softAPdisconnect() #9108
Replies: 3 comments 1 reply
-
Code is very simple but enough to show that an ESP32 has not been submited to the function softAPdisconnect() works and the two ones that softAPdisconnect() was executed, not.
Following printout is the same for the two groups of ESP32:
Wifigeneric.cpp and Wifista.cpp were modified to add some messages for tracking purpose:
That is like the ESP32 module that executed softAPdisconnect() suffered some damage (what doesn't make any sense) or some especial flag/value were written on flash that prevents ESP32 tx radio from work. |
Beta Was this translation helpful? Give feedback.
-
Please submit an issue instead, where you will detail on your environment (os, chip, revision, version of the core, etc.). |
Beta Was this translation helpful? Give feedback.
-
This discussion was moved to the issue section at #9110 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I've been working on a Wi-Fi AP project and doing several changes to experiment results and after using softAPdisconnect(), I've noticed ESP32 was not transmitting anymore, even after resetting, turning it off and on and erasing flash.
At a initial moment, I could not realize that this problem happened after using softAPdisconnect().
I've removed little by little the last changes but nothing made the AP work again.
So, I've taken a second ESP32 module and the AP project came back to life. I spared the first ESP32 for a later investigation.
Back to the development of the AP project, at certain moment I included again softAPdisconnect() and the previous problem arose again. This time I could realize that it was related to this function, but I have no clue why, even after checking WiFiAP.cpp to understand what this fucttion does.
Again, a new ESP32 module was taken and the AP functions again. This time softAPdisconnect() was removed.
I do not know if what caused the problem was either softAPdisconnect( true ) or softAPdisconnect( false ). Both?
I've spending A LOT of time trying to recover those 2 ESP32 modules in order to be used as AP again. All failed till now. As a station (client), it works.
BTW, Functions "enableSTA(true)", "WiFi.mode( WIFI_MODE_STA )", "esp_wifi_set_mode( mode )" ("mode" previously set to "WIFI_MODE_STA") do not change mode value. It's always "WIFI_MODE_NULL", according to the result of "esp_wifi_get_mode( &mode )". It ALWAYS returns "ESP_OK" and put the "WIFI_MODE_NULL" value on "mode" variable.
Notice: this constant return of "WIFI_MODE_NULL" happens even on a ESP32 module that is AP operative.
So, the questions:
Beta Was this translation helpful? Give feedback.
All reactions