Don't Get Live Data In App

I have a very basic question.

I am using the example from here:
[https://examples.blynk.cc/?board=ESP8266&shield=ESP8266%20WiFi&example=GettingStarted%2FPushData]

Then, in the app I define a Value Display to push data received from V5.

My question is, should the app be updating every second showing the timer count?

I am asking because I don’t see this. Sometimes it will update with the latest one time and stop.

For example, if my tablet has gone to sleep and then I wake it up then often (but not always) I will see one refresh of the latest count value then it sits there showing that value.

I expect it to update once per second but it does not and I cannot figure out why?

Thank you.

I have more information to add to my post.

Is the problem my older tablet?

It is running Android 5.0.2.

Also, I just confirmed if I turn the power button off to make it sleep then immediately turn it back on the app will update once with the latest value every time then stop.

If your Widget is set to PUSH (not any other reading rate - that is for another purpose) then yes, it should receive new data each time the script processes a new timed Blynk.VirtualWrite() command

Shouldn’t be, I have a few older devices running, and while a bit pokey when maneuvering around in the App… they work fine once settled into a particular project.

OK, then for some reason it does not work for me.

I only get one update the first time I turn on my tablet to the blynk app. that’s it.

What am I doing wrong?

Make sure you are running the latest Blynk Library version, App version and try other examples as well.

I think you mean on the Arduino and I believe it is the latest.

When I first played with Blynk many months ago I tried many example apps none of which worked for me.

Even my friend sent me his app which works but it would not work for me so at the time I gave up out of frustration.

Now, when I say it wouldn’t work, what I mean is when the NodeMCU updated Blynk I would not see it update on my android tablet.

So, I moved on instead serving up the information on a webpage running on the NodeMCU.

It works great only to be able to access this data outside my internal network I figured I would give Blynk another try but it still does not work for me.

I am not sure what to do. I used to use cosm.com which I really liked but it is no longer working.

What @Gunner means is that you should make sure that you have the latest version of the Blynk Library installed, which is currently v0.5.4
https://github.com/blynkkk/blynk-library

You should also be using the latest ESP Core, which is 2.4.2

Running the latest version of the Arduino IDE is also a good idea. The current version is 1.8.7
https://www.arduino.cc/en/Main/Software

Lastly, check the App Store/Play Store to ensure that the app you’re running on your mobile device is up to date.

If none of that works, and trying other sketch builder code produces similar results, then I’d suggest doing a clean install of the Arduino IDE. The easiest way to do this is to do a Portable install on a removable drive. You’ll need to reinstall the Blynk library and ESP Core on your removable drive for this to work.

Pete.

1 Like

Yes, I am on the same versions on the Arduino.

And my mobile is 2.27.0.

I am not sure how to check for updates.

But, I am quite sure the issue is between Blynk and my mobile device because it looks like the Arduino is sending data to the Blynk server successfully every 5 seconds.

You can check the library version via the IDE Libraries Manager, you need to have the latest (0.5.4 - In the IDE and flashed to the device) for full App compatibility.
image

But as far as updating it is recommended to use the Manual install method

Same with the ESP Arduino Core, but using the Boards Manager

image

This you should be able to update from the IDE. If not then read here…

1 Like