I have been using the dailytimerspark library on a few projects and love it. I am having a problem implementing the timer1.setDaysActive(B10101010); function. I get a don’t compile when I enable it. Here is the portion of the code I am working on.
DailyTimer timer1(12,00,12,10, EVERY_DAY);
DailyTimer timer2(9,11,9,11, EVERY_DAY);
DailyTimer timer3( 21, 32, 21, 32, EVERY_DAY);
bool timer1_LastState = false;
uint32_t lastUpdateTime = 0;
void setup()
{
Time.zone(-4);
timer3.begin();
timer2.begin();
timer1.begin();
Serial.begin(9600);
pinMode(ProblemPump,INPUT);
pinMode(PressureSw, OUTPUT);
pinMode(ENABLE_PIN, INPUT);
pinMode(RELAY1, OUTPUT);
WiFi.selectAntenna(ANT_EXTERNAL);
//timer1.setDaysActive(B10101010);
I am using the example firmware on two Photons doing different applications with no problems. I just want to change from timer1 firing everyday to 4 days of the week. Thanks for your help.