I think we need an extended Alarm.write function:
void TimeAlarmsClass::write(AlarmID_t ID, time_t value,dtAlarmPeriod_t period)
{
if(ID < dtNBR_ALARMS && Alarm[ID].Mode.isAllocated){
Alarm[ID].value = value;
enable(ID);
Alarm[ID].Mode.alarmType=period;
}
}
Otherwise it is not possible to set the period of an alarm (I need it in my sketch)
we could also add
TimeAlarmsClass::write(AlarmID_t ID, time_t value,dtAlarmPeriod_t period,OnTick_t onTickHandler)
I will use the last one (also not mandatory) on the contrary to the previous on which I definitly need.
Best regards