How to change the status of the switch?

In the app I have a button configured as a switch that, if pressed, starts a timer on the device. I would like to know if there is a way, when the timer has finished, to return the button to the starting position (not pressed)
Thanks a lot

Sure, just send the “0” (that is the default “off” value, configured in Button widget settings) value back from the device

Thanks Eugene, so you say something like this:
Blynk.virtualWrite(V1, LOW);

where V1 is the virtual pin associated with the switch

As @Eugene said:

Blynk.virtualWrite(V1, 0);

unless you’ve changed the defaults in the widget.


Ok, with LOW it doesn’t work but with 0 it works perfectly.
Thank you

1 Like