I am switching from the “old” blynk to the new one and trying to get familiar.
I am using the examples sketch generated here:
https://examples.blynk.cc/?board=ESP8266&shield=ESP8266%20WiFi&example=GettingStarted%2FPushDataOnRequest
In the comments it says:
Project setup in the app:
Value Display widget attached to V5. Set any reading
frequency (i.e. 1 second)
and...
// This function tells Arduino what to do if there is a Widget
// which is requesting data for Virtual Pin (5)
BLYNK_READ(PIN_UPTIME)
{
// This command writes Arduino's uptime in seconds to Virtual Pin (5)
Blynk.virtualWrite(PIN_UPTIME, millis() / 1000);
}
```cpp
In the previous app version, I recall begin able to set the read frequency of a label widget. But I am not seeing that anywhere now and I am not sure how to set it.
I have been working through the docs to no avail looking for info on BLYNK_READ, but I am starting to think maybe it has been deprecated and instead I need to specify this in BlynkTimer?
Thanks for any thoughts!
Details:
• Hardware model + communication type. Adafruit Huzzah ESP8266 + WiFi
• Smartphone OS -> iOS 15.5
• Blynk server
• Blynk Library version -> 1.1.0