Page 1 of 2
Esp not connecting to wifi after some days
Posted: Fri May 03, 2019 1:26 pm
by burkulesomesh43
Hello everyone,
I am getting wifi disconnect issue from very long time.
As I kept my ESP32 live for long time, it disconnects and not getting connected to the configured SSID and PASSWORD again till switch it OFF and ON again. I am using esp-idf v3.1.3.
Please help me to resolve this issue.
Thanks in advance.
Re: Esp not connecting to wifi after some days
Posted: Sat May 04, 2019 6:14 pm
by reivax2
WiFi.begin(ssid, password);
int i=0;
while (WiFi.status() != WL_CONNECTED && i++<=10)
{
delay(1000);
i=i+1;
if (i>11)
{Serial.print("I don´t connect......");
ESP.restart();
}
Re: Esp not connecting to wifi after some days
Posted: Sun May 05, 2019 12:27 pm
by burkulesomesh43
reivax2 wrote: ↑Sat May 04, 2019 6:14 pm
WiFi.begin(ssid, password);
int i=0;
while (WiFi.status() != WL_CONNECTED && i++<=10)
{
delay(1000);
i=i+1;
if (i>11)
{Serial.print("I don´t connect......");
ESP.restart();
}
Sorry but I am not using arduino. and also its not the proper solution to restart esp.
Re: Esp not connecting to wifi after some days
Posted: Mon May 06, 2019 7:08 am
by WiFive
Unfortunately it is hard to diagnose issue like this, you need logs from the time of disconnect. You can try with different esp-idf versions and different APs, see how common the problem is. You may even need WiFi sniffer captures to solve it.
Re: Esp not connecting to wifi after some days
Posted: Mon May 06, 2019 7:35 am
by burkulesomesh43
WiFive wrote: ↑Mon May 06, 2019 7:08 am
Unfortunately it is hard to diagnose issue like this, you need logs from the time of disconnect. You can try with different esp-idf versions and different APs, see how common the problem is. You may even need WiFi sniffer captures to solve it.
As I saw logs w.r.t same issue, ESP32 gets connected to my Router with no IP (may be SYSTEM_EVENT_STA_GOT_IP event not generated) and it stucks until we switch it OFF and ON again. why does it happen. what is the reason behind it.
Re: Esp not connecting to wifi after some days
Posted: Mon May 06, 2019 10:42 am
by WiFive
Re: Esp not connecting to wifi after some days
Posted: Mon May 06, 2019 10:58 am
by burkulesomesh43
It is already enabled in my configuration by default.( CONFIG_LWIP_DHCP_DOES_ARP_CHECK ).
Re: Esp not connecting to wifi after some days
Posted: Mon May 06, 2019 11:08 am
by WiFive
Enabled or disabled?
Re: Esp not connecting to wifi after some days
Posted: Mon May 06, 2019 11:29 am
by burkulesomesh43
WiFive wrote: ↑Mon May 06, 2019 11:08 am
Enabled or disabled?
Sorry, It is enabled. I am going to disable it.
But really does it affect??
Re: Esp not connecting to wifi after some days
Posted: Thu May 30, 2019 6:28 am
by burkulesomesh43
I disbled this setting in menuconfig. but still getting same issue.