You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wouldn't say that it does not work. It actually does in a way... There are a lot of delays in my code above on purpose and my cell phone is my access point for this example. I can see how the ESP32 connects to my phone but after disconnecting and disabling wifi, the connection still exists just before the loop repeats. I can see that the ESP32 disconnects very short and reconnect again. I also did power measurements and there are no changes between WIFI_OFF and the new loop.
I changed the WiFiGeneric.cpp as described and this will cause an other problem. I dont get the error as mentioned at the beginning anymore. The wifi connection will be disabled immediately after the function is called (I can see at my phone). The power consumption decreases, it seems wifi is truly off. But im not able to reconnect again:
15:24:07.451 -> Connecting to WiFi..
15:24:07.451 -> Connected!
15:24:17.473 -> Wifi disconnected
15:24:17.473 -> Wifi OFF
15:24:33.462 -> Connecting to WiFi..
15:24:34.469 -> Connecting to WiFi..
15:24:35.478 -> Connecting to WiFi..
15:24:36.457 -> Connecting to WiFi..
15:24:37.465 -> Connecting to WiFi..
Any ideas?
The text was updated successfully, but these errors were encountered:
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.
Hi,
I have the same issue as explained in this post:
https://github.com/espressif/arduino-esp32/issues/4421
If im trying to disable and enable wifi, I always get this message:
I wrote a simple code for my loop function:
I found two solutions but they did not work for me so far. Here is number one:
https://github.com/espressif/arduino-esp32/issues/3522
There is described, what have to be edit in the WiFiGeneric.cpp to accomplish a wifi disable/enable routine.
I wouldn't say that it does not work. It actually does in a way... There are a lot of delays in my code above on purpose and my cell phone is my access point for this example. I can see how the ESP32 connects to my phone but after disconnecting and disabling wifi, the connection still exists just before the loop repeats. I can see that the ESP32 disconnects very short and reconnect again. I also did power measurements and there are no changes between WIFI_OFF and the new loop.
The second solution I found is here:
https://github.com/espressif/arduino-esp32/commit/80e9e42c3b7a8ad646cd8803c9f4f84e35c9ebb1
I changed the WiFiGeneric.cpp as described and this will cause an other problem. I dont get the error as mentioned at the beginning anymore. The wifi connection will be disabled immediately after the function is called (I can see at my phone). The power consumption decreases, it seems wifi is truly off. But im not able to reconnect again:
Any ideas?
The text was updated successfully, but these errors were encountered: