Blynk connection get disconnected automatically

In my project , I send data from ESP-8266 to blynk server every 30 sec.

After about 1and half hour the blynk server connection gets disconnected automatically .
There is no problem with internet connection or with any hardware inputs.

This is making my system unreliable.

Any one has any solutions ???

It could be caused by badly written code.
Post your code here (correctly formatted with triple backticks at the beginning and end) and we’ll take a look.

Pete.

2 Likes

Also check your DHCP lease time in your router settings (if using WiFi) if this is too short, it may cause your device to refresh its internal IP address which may cause a temporary disconnect.

3 Likes

Thanks peter
yes it could be one of the reason
I shall share my code