"switchRelay%d",i);
Alarm.alarmRepeat(sch_hours,sch_minutes,0, PASS_CALLBACK_NAME_HERE); //
}
Is it possible to pass function pointer as string made by sprintf?
It won't work. Functions stay in the read only portion of the memory. If you try to write to it, you will get a segfault. And also the types are different, so you would have to force a very strange conversion
Обсуждают сегодня