If you are asking a question, please follow this template:
-
My goal is:
use Blynk Time Input with Mongoose JS Api -
My actions are:
Blynk.setHandler(function(conn, cmd, pin, val, id) { let ram = Sys.free_ram() / 1024; print('BLYNK JS handler, ram', ram, cmd, id, pin, val); }, null);
-
The result I see is:
BLYNK JS handler, ram 28.613281 vw 25 3 18000
-
My expectation & question is:
Blynk Time Input has besides the value for the time, additionally ‘param’ for the selected days, timezone, etc.
How do I get this parameter?
Blynk example
BLYNK_WRITE(V1) {
TimeInputParam t(param);
// Process start time
if (t.hasStartTime())
{
Serial.println(String("Start: ") +
t.getStartHour() + ":" +
t.getStartMinute() + ":" +
t.getStartSecond());
}
else if (t.isStartSunrise())
{
Serial.println("Start at sunrise");
}
else if (t.isStartSunset())
{
Serial.println("Start at sunset");
}
else
{
// Do nothing
}