Time Input reset

Hey there,
I couldn’t find a way to reset the time input from hardware! reset button in app is awesome but I want to do it in code. my time input has start hour and start minute and that’s it. I tried

Blynk.vitualWrite(pin,NULL,NULL);

and some other stuff…

That’s not a proper solution but it kind of works.

Hey everyone,
Trying to duplicate the “reset” button action from the blynk app in time input.
My widget has no timezone or stopAt, just start time.
I tried,
Blynk.virtualWrite(V10,NULL);
But that does not seems to work.
Would love some advice! Thanks.

EDIT:
Also, there seems to be a problem in the app UI with updating the time input values from virtualWrite. I need to press the time input widget and go back to main screen for it to update.

@sahar540 Based on this topics eventual conclusion…

The “reset” is referenced by the parameter t.hasStartTime()

And based on the example link in the Docs for the Time Input Widget

It seems there are multiple parameters to send

Blynk.virtualWrite(V1, startAt, stopAt, tz, days);

I would recommend trying something like this (untested!! - you will have to fiddle around with the syntax to get it right, if possible)…

Blynk.virtualWrite(V10, 0, 0); // for "resetting" startAt & stopAt

PS, I merged your current topic back into your past topic about same issue.

You might also wish to dig into the library file for that widget, for clues on how to reference its parameters…

To reset startAt and stopAt it should be -1 not zero for each of these params

1 Like

Thanks!! :smile: That clears up much!

This widget’s Documentation and examples need some tweaking. I don’t have the energy, inclination, or experience using it, but perhaps someone else can contribute.

1 Like