Initializing Virtual Pin Value without interacting with Widget?

As the title suggests, is there a way to initialize virtual pin values without physically interacting with the widget first? It is a little awkward to press all the buttons and switches initially before being able to BLYNK_WRITE values from them.

Are you saying that you want your MCU to know the current App/Server values for the various virtual pins without first having to ‘dirty’ the values in the app and trigger a BLYNK_WRITE for that pin?

If so then you need to read-up on BLYNK_CONNECTED and Blynk.sync(vPin)

Don’t be tempted to use Blynk.syncAll() though, it’s very messy and it’s functionality is restricted in Blynk IoT.


@dld1422 did you try datastream default value?

1 Like