Hello fellow Blynkers.
I have a problem visualizing the data in the superchart in live tab.
I’m sending values in a time interval using BlynkTimer. Now I’m looking at them in the live tab of a superchart. This works for a few seconds sometimes even up to a minute or longer. But then the superchart just randomly stops showing any values and freezes in place. This stays until I restart the project on the Blynk app or change the tab to any other interval and back to live again. Then this starts from new and the supercharts freezes like 20-60 seconds later. I don’t really understand what could cause this. One more observation is that if I wait a few minutes sometimes it randomly starts showing values again without changing the tab, but only for 20-60 seconds before the next freeze again.
My Setup is:
- A local server on Raspberry Pi 3B+
- Sketch on ESP32 (Heltec Lora)
- Sending values via BlynkTimer/virtualWrite reading them with PUSH (The values is simply voltage i can change with a poti in this minimal example)
For the timer’s interval I now tried different things:
- 50/100/150/200ms between each virtualWrite
- 500ms occurs still, but seems to be less often
- I also tried 10ms once and interesteingly this worked for 10 minutes straight without problems
Library version: 0.5.3
#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>
char auth[] = "XXX";
char ssid[] = "XXX";
char pass[] = "XXX";
BlynkTimer timer;
void update(){
Blynk.virtualWrite(V0, analogRead(36));
}
void setup() {
WiFi.begin(ssid, pass);
Blynk.config(auth);
Blynk.connect();
timer.setInterval(100, update);
}
void loop() {
timer.run();
Blynk.run();
}