Page 1 of 1

Wifi disconnects automatically inbetween

Posted: Tue Jun 01, 2021 11:51 am
by man9495
Hi Folks!!
Hope you are fine and safe during this pandemic.

Components using:-
1) esp32 devkit
2) esp-idf 4.0.1

My Scenario:-
1) Once esp32 connected with WIFI and with help of WIFI event I set the flag that WIFI is connected. And once WIFI connection created successfully, it further starts creating the MQTT connection and other stuff.
2) And once if WIFI is not available or turned off, then in esp32 with the help of WIFI disconnect event, I reset the flag.
3) But in case if WIFI is available and also esp32 is connected to WIFI, after some time , let's say one hour, sometimes 2 days or 1 day and so on, it automatically gets disconnected with WIFI and after sometime it reconnects again.
So the issue I am facing is that after some time esp32 devkit drops the WIFI connection and reconnects again. Is there any solution for this?

Thanks in advance! :) :)