I have a problem with device lost in application. I have two devices ESP8266 connected to blynk cloud and starting from Sunday evening i face this problem. The devices themselves continue their work properly, but they are offline in the application. Only device restart helps. On Sunday evening I need to restart my devices each 10 minutes, because of connection lost in app, Then everything worked properly till the Monday evening. The same stuff for Monday evening - several restarts each 10-30 minutes. The last restart was made this morning (7 am CET). And now one of the devices is online, but the second one is offline. And more thing, the both devices were online in the morning, but the app shows, that the second device is offline since 10:48 PM Feb 26, 2018, which is definitely not true.
The app version is 2.18.2. Server - blynk-cloud
My email is xx. I I know, that it works, because I’ve tested it this morning before restart. And, actually, that is not the first time the issue occurred, so I know for sure, that it works. I use DHT22, but I don’t think it’s related somehow. I tried using the plain Blynk example and had the same issue. I have this problem since 2.18.0 version of app. Then it was fixed (I believe) in 2.18.1. But starting from 2.18.2 the issue came back.
One of them was just updated with new firmware without settings change. The second one, I don’t remember for sure, but it may be, that the board type was changed from ESP8266 Generic to NodeMCU.
But, the HW is alive and works as expected, just don’t see it in the app. What maybe wrong there? Should it reconnect automatically, if the the signal was lost (WiFi reconnect or something like that)? Or does it require some additional code in the device to check the connection and reconnect in case of problems?
My device has also hw buttons and relays attached to it. And everything remains in the working state when the device disappears from the app.
P.S. I don;t use a watch dog timer.
I also tried to power my device from the PC with the serial port active. And there were no messages to serial port when the device disconnected.
Maybe I use it, thanks!
It means, that the device was initially powered from PC and connected to serial. And I saw the messages of connecting to WiFi and blynk cloud on a start. And after some time the device disappeared in app, but there were no messages in the serial port monitor.
You should send periodic updates to Serial Monitor to be sure if your hardware is running or not. Say at 30s or 60s intervals during code debugging stage.
If you’re using the Arduino IDE serial monitor it can often become unresponsive in my experience. When it does this is will stop displaying the serial output and you need to close and re-open the serial monitor for it to start working again.