m in trouble, my blynk disconnects after a day on and I do not know what happened, I’m not using any code, just using the pushbuttons.
ps1: I tested with 4 different boards being: esp01s, nodemcu, wemos d1 mini and wemos retired.
ps2: In the 24 hour period, if I disconnect my internet router and reconnect the blynk automatically connects.
ps3: After 24 when the blynk is already offline if I press the reset button on the board it goes back to working for another 24h.
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "YourAuthToken";
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "YourNetworkName";
char pass[] = "YourPassword";
void setup()
{
// Debug console
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);
}
void loop()
{
Blynk.run();
}
Sounds like you have internal networking issues (DHCP, router failures, interference, etc.), not Blynk issues. My router seems to hate running too many DHCP devices, but runs tme stability if I set their IP’s to static… go figure.
I’ve had a similar issue with my network. I think it’s when a device disconnects and reconnects and grabs a new dhcp address. The router eventually looses it’s mind. For a while I had to reset my router every day. I found the offending device and never had that problem again. Maybe there is some setting in the router that might account for issues like that.
I have the same problem with both esp-01 and enc82j60 as a Ethernet shield for Arduino, although i have set static IP address for esp-01 or enc82j60 in router setting, it went offline after 1 or some days. And after reset Arduino it worked but went offline after that. I don’t know why.
People, i set ip to static and the board is online for more than 24 hours, I will leave 24 more and I will put the topic as resolved if it works.
Thanks for your help, thank you Blynk community.
i set static ip in my router by mac address, my project are control some rf 315mhz devices through arduino - esp-01 (or enc82j60) - blynk. i think it go offline when i didn’t use in some days
What channel width is your router operating on?
I think I had some issues with network connectivity on some of my cheap China devices when I was on the 40 MHz width.
Well yeah my devices also worked after a reset only to randomly stop working. Could never figure out if it was the band width or simply my router dropping the connection.