Hi All
I am having a bit of a problem with the Time Input Widget when selecting the days of the week. I have used the date picker in the past and I don’t remember having this problem but maybe I just never noticed it.
What Works:
When you select a specific day, the correct day is reported on the Arduino Side. (Correct Days Selected)
When you select all the days, all the days are reported correctly on the Arduino Side. (All selected)
The Problem:
When you select none of the days in the app, all the days are returned to the Arduino as being selected.
Is there a workaround for this?
Below is a snippet of the arduino code used.
/////////////////////////////////////////////////////////////////////////////////////////
//This is called when the TimeInput values are changed in Blynk
BLYNK_WRITE(V5)
{
TimeInputParam t(param);
AlarmOnTime_1 = t.getStartHour() * 60 + t.getStartMinute();
AlarmOffTime_1 = t.getStopHour() * 60 + t.getStopMinute();
for (byte i = 1; i <= 7; i++) {
DaysOfWeek_1[i] = t.isWeekdaySelected(i);
}
}