Hi.
I want to disconnect wifi when it is idle for long time and reconnect when I set any GPIO to high level.
Reconnect work when I put esp_connect_wifi into event_handler in SYSTEM_EVENT_STA_DISCONNECTED case, but doesn't work when I call esp_connect_wifi in other function.
How to make it working?
Disconnect and reconnect ESP32 to hotspot.
Re: Disconnect and reconnect ESP32 to hotspot.
I resolved my issue by using esp_wifi_stop() and esp_wifi_start().
I also used the flag to notify the event_handler that it can call esp_wifi_connect ( in SYSTEM_EVENT_STA_DISCONNECTED case ) when I will want to connect to Hotspot.
I also used the flag to notify the event_handler that it can call esp_wifi_connect ( in SYSTEM_EVENT_STA_DISCONNECTED case ) when I will want to connect to Hotspot.
Re: Disconnect and reconnect ESP32 to hotspot.
So, is there any issue now to reconnect with hot-spot?
Regards,
Ritesh Prajapati
Ritesh Prajapati
Re: Disconnect and reconnect ESP32 to hotspot.
Great. Good Job. Let me know if any issue into future for ESP32
Regards,
Ritesh Prajapati
Ritesh Prajapati
Who is online
Users browsing this forum: No registered users and 80 guests