Page 1 of 1

esp_wifi_disconnect() hangs

Posted: Wed Feb 13, 2019 10:42 pm
by sparky3822
I'm working on a provisioning feature with my code. After successful I stop the provisioning service I then call esp_wifi_disconnect() which never returns.

Where can I find the source code for esp_wifi_disconnect() to troubleshoot?

Re: esp_wifi_disconnect() hangs

Posted: Thu Feb 14, 2019 3:06 am
by ESP_Sprite
You can't; the WiFi driver is closed source. Suggest you take your code and whittle it down to the minimum of code required to reproduce the error, then create an issue on our Github.

Re: esp_wifi_disconnect() hangs

Posted: Thu Oct 17, 2019 8:44 pm
by sparky3822
The reason why esp_wifi_disconnect() would never return is because I was calling it from an esp_timer callback. Which I guess isn't permitted.

Maybe similar to https://github.com/espressif/esp-idf/issues/4115