Time Input widget will be back!

@nttu53 You’ve edited your post, but despite me giving you triple backticks to copy & paste you tried using other characters, then used blockquotes. Neither of these cause the sketch to be displayed correctly.

Please format your code correctly, otherwise it will be deleted.

Pete.

I looked for how to use time input on new platforms but didn’t see any documentation. Is it used the same way as on the old platform?
Code:

BLYNK_WRITE(VPIN_Time_Input)
{
TimeInputParam t(param);
// Process start time
if (t.hasStartTime())
{
int Start_hour = t.getStartHour();
int Start_minute = t.getStartMinute();
int Start_sencond = t.getStartSecond();

}
// Process stop time
if (t.hasStopTime())
{
int Stop_hour = t.getStopHour() ;
int Stop_minute = t.getStopMinute() ;
int Stop_sencond = t.getStopSecond();

}
}

Instead of asking questions here like “WILL IS WORK”
You can just upload the code n test it yourself as you have the snippet code in hand.

Just use the data stream type as string in the web dashboard n check if that works. It should work.

1 Like

Thanks for your remind. It’s work with the same way.

1 Like