A simple question I hope. I have a simple temperature monitor that I wanted to send data to Blynk at different rates (from 1/sec to 1/30min or only on significant delta).
This is a battery powered device so minimum wifi usage is desired.
However I was challenged with the Older Blynk. If I did a cycle and re-connected within 2-3 minutes - it worked as expected. But once I broke the 4-5 minute time - the reconnect would not work smoothly
So question is: What is the minimum data rate that must be maintained before the “device” is flagged OFFLINE or DISCONNECTED? And/or is there a “periodic check” by blynk to know if the device is still “connected”??
Appear ON line is NOT critical currently. I just wanted to know “when” Blynk Server would declare a device as “disconnected”.
And is this via a sequence from my Device OR is there a “periodic ping/check” used - or ???
Thanks
As I noted - with the original version - seemed I stumbled into 3 different time windows. Where my things acted as if they were “still active” - Where a typical log-on cycle was needed (long sleep) - but a time where it just took a long time to connect (longer than clean log-on) and sometimes this took multiple cycles.
Pete,
So as i start the code rework - the “perhaps obvious” thought manifests as to how the server side is designed for “sleeping devices”.
I understand the idea of the PING approach to know if the device is online - great approach.
However I don’t know if a single missed ping will flag as offline - or if multiple pings need to “fail”. So that is query one.
The second query is "If I manually send data to blynk server does this RESET the ping timer. Idea being if I wakeup between PINGs and send data does that keep the device ONLINE. I realized that even with a multiple minute ping time - if i am sleeping the chance of being awake is fairly low (almost like lottery).
I believe that a single unreturned heartbeat will do that, yes.
What do you mean by “manually”?
If you mean using the HTTP(S) API then no, it does not.
If you mean that your device wakes then connects to Blynk then the server knws that the device is online again and what you call the “ping timer” is re-initialised.
It might help if you turned BLynk Debug on and watched the data exchange between the server and the device. This topic might help you to understand the results…