ESP8266 Getting disconnected from WiFi Automatically. SDK issue. #2510
-
Hello Sming Team, I experienced a issue with ESP8266. It disconnects from the WiFi network and it doesn't connect automatically after number of days. I did some search on internet and found that it as a memory leak on SDK (with time of days) and ESP doesn't identify WiFi connectivity (ES8266 still thinks WiFi is connected). The suggestions is check WifiStation.isConnected() and do restart ESP if value is false. I am not sure about this because during this issue ESP thinks still Station is connected. I am thinking about more robust system. Ping the router frequently and restart the ESP if it failed. I found Sming inbuilt resource ping.h on "Sming\Arch\Esp8266\Components\esp-open-lwip\esp-open-lwip\lwip\app" directory. But they are not available to application level (ping.o is not available). Can you help me with this. Do you have any other solution for this? Thank you in advance. Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Can you please paste the link to this information here? The best would be if we can fix this memory leak.
It might work but usually memory leaks tend to eat most of the available memory on an embedded device. So it is not clear if the device will have enough memory to execute even ping...
ICPM packets are allowed for ESP8266 in both LWIP versions that are available. So what is missing is a sample implementation. I came upon this implementation which should compile and work also on Sming. Do you want to try it and add it as an improvement to Sming? |
Beta Was this translation helpful? Give feedback.
-
@Asanga-Viraj You can try PR #2513 which contains network ping sample for ESP8266. |
Beta Was this translation helpful? Give feedback.
@Asanga-Viraj You can try PR #2513 which contains network ping sample for ESP8266.