esp_wifi_disconnect() hangs

sparky3822
Posts: 5
Joined: Wed Dec 19, 2018 12:24 am

esp_wifi_disconnect() hangs

Postby sparky3822 » Wed Feb 13, 2019 10:42 pm

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?

ESP_Sprite
Posts: 9730
Joined: Thu Nov 26, 2015 4:08 am

Re: esp_wifi_disconnect() hangs

Postby ESP_Sprite » Thu Feb 14, 2019 3:06 am

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.

sparky3822
Posts: 5
Joined: Wed Dec 19, 2018 12:24 am

Re: esp_wifi_disconnect() hangs

Postby sparky3822 » Thu Oct 17, 2019 8:44 pm

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

Who is online

Users browsing this forum: No registered users and 97 guests