I am using Blynk through REST API (no library) and so far all is good. But I would like my device to appear online on the mobile APPs and the web console. I want this so I can notify my users on disconnect of device. (It will be on GPRS cellular network)
Is there a way to achieve this ?
Yes, I would like to check the device’s state and use an automation to inform users. My problem is that my devices appear always offline. I don’t know of any way to change that through REST API.
I understand that through the library this is done as a housekeeping service or something, I don’t know for sure how. That’s why I am asking here, maybe someone has that experience already.
And it would be great if this could be done with minimum bytes transfered (something like a ping) because I am on GPRS data.
P.S. I tried pinging “blynk.cloud” server every some secs but to no avail…
I
No, not at the moment.
Currently, A device is online when it has an Always On connection with the server. Using the API doesn’t create an Always On connection.
BLYNK_HEARTBEAT specifies how frequently the device and server talk to each other across the Always On connection. It has no relevance as far as HTTP(S) API calls are concerned.