Virtual pin read on connection

Hey guys,
I want to use the BLYNK_CONNECTED() function in order to perform a reading of a virtual pin. As far as I know there isn’t any virtualRead option. I know about the BLYNK_WRITE function, but that takes place only on if there is a change on the widget right ? I want to make sure that whenever my board crashes or w/e it will get the time frame from the widget.
How can I read the virtual pin of my time input widget first thing on my program?
ESP8266 NodeMCU 1.0
thanks !

Blynk.syncVirtual(vPin) will force a BLYNK_WRITE(vPin)

http://docs.blynk.cc/#blynk-firmware-blynktimer-blynksyncvirtualvpin

Pete.

Awesome, gonna try it soon

1 Like