Esp not connecting to wifi after some days
-
- Posts: 132
- Joined: Tue Aug 14, 2018 6:21 am
- Location: India
Esp not connecting to wifi after some days
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.
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.
--
Somesh Burkule
Somesh Burkule
Re: Esp not connecting to wifi after some days
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();
}
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();
}
-
- Posts: 132
- Joined: Tue Aug 14, 2018 6:21 am
- Location: India
Re: Esp not connecting to wifi after some days
Sorry but I am not using arduino. and also its not the proper solution to restart esp.
--
Somesh Burkule
Somesh Burkule
Re: Esp not connecting to wifi after some days
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.
-
- Posts: 132
- Joined: Tue Aug 14, 2018 6:21 am
- Location: India
Re: Esp not connecting to wifi after some days
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.
-
- Posts: 132
- Joined: Tue Aug 14, 2018 6:21 am
- Location: India
Re: Esp not connecting to wifi after some days
It is already enabled in my configuration by default.( CONFIG_LWIP_DHCP_DOES_ARP_CHECK ).
--
Somesh Burkule
Somesh Burkule
Re: Esp not connecting to wifi after some days
Enabled or disabled?
-
- Posts: 132
- Joined: Tue Aug 14, 2018 6:21 am
- Location: India
Re: Esp not connecting to wifi after some days
Sorry, It is enabled. I am going to disable it.
But really does it affect??
--
Somesh Burkule
Somesh Burkule
-
- Posts: 132
- Joined: Tue Aug 14, 2018 6:21 am
- Location: India
Re: Esp not connecting to wifi after some days
I disbled this setting in menuconfig. but still getting same issue.
--
Somesh Burkule
Somesh Burkule
Who is online
Users browsing this forum: No registered users and 95 guests