Blynk reports "offline" but I can write values

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
PeterKatana
Normal user
Posts: 7
Joined: 23 Mar 2020, 00:38

Blynk reports "offline" but I can write values

#1 Post by PeterKatana » 23 Mar 2020, 10:40

Hi all,

I am now able to send sensor values with BlynkGet to the blynk cloud (blynk-cloud.com) and the widgets shows the right values. Unfortunately the blynk app reports still that I am "offline" which is not correct, because blynk also updates the fields with the values I sent from ESPeasy.

I use the latest dev binary: ESP_Easy_mega-20200310_dev_ESP8266_4M1M.bin

Thanks for your support !

Br Peter

User avatar
ThomasB
Normal user
Posts: 614
Joined: 17 Jun 2018, 20:41
Location: USA

Re: Blynk reports "offline" but I can write values

#2 Post by ThomasB » 23 Mar 2020, 16:39

In case it helps, check this out: http://docs.blynk.cc/#blynk-main-operat ... ine-status

I briefly looked at the Blynk code (CPLUGIN_012) and I don't believe it is performing the heartbeat ping. Perhaps a workaround would be to create a timer rule that uses BlynkGet to communicate every 10 secs.

I'm not a Blynk user so this is just my best-guess solution at keeping the APPs status set to Online. BTW, since your values are being written I propose that it's fine to ignore the "Offline" status.

- Thomas

PeterKatana
Normal user
Posts: 7
Joined: 23 Mar 2020, 00:38

Re: Blynk reports "offline" but I can write values

#3 Post by PeterKatana » 23 Mar 2020, 19:19

You are right. The update of the values withing the Blynk display runs very well. Thanks for your proposal before. Works great. But because of the working field value updates I assume, its another topic. The only thing is: we thing about using Blynk as an end user app for clients. In that case the would be wondering why blynk shows the "offline" status. But thats maybe a topic for later.

Thanks for your valuable hints Thomas !

br Peter

User avatar
ThomasB
Normal user
Posts: 614
Joined: 17 Jun 2018, 20:41
Location: USA

Re: Blynk reports "offline" but I can write values

#4 Post by ThomasB » 23 Mar 2020, 23:00

If using a repeating 10 second timer rule to refresh the Blynk host does not work then I'm out of easy ideas. But I'm not a Blynk user, so my knowledge is limited. Hopefully an expert jumps in and has a solution for you.

It seems that the Blynk host needs a periodic ping (heartbeat) to maintain online status. ESPEasy has a generic Ping plugin, but Blynk requires a special ping method. The official Blynk App allows the user to disable the offline notifications, which was a feature added as a result of a discussion about pinging Blynk:
https://community.blynk.cc/t/http-restf ... rver/17683

BTW, there is an alternate ESPEasy Blynk plugin that appears to include the heartbeat ping feature. But it will require you to build your own ESPEasy firmware. See the _C0015.ino (Blynk SSL) file.
https://github.com/letscontrolit/ESPEas ... /_C015.ino

- Thomas

PeterKatana
Normal user
Posts: 7
Joined: 23 Mar 2020, 00:38

Re: Blynk reports "offline" but I can write values

#5 Post by PeterKatana » 25 Mar 2020, 00:10

Hi Thomas,
thanks for your ideas. I will continue to try out. For a "non Blynk user" you know a lot :-))

Thanks once more!
Be Peter

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 8 guests