Skip to content

Commit 527328e

Browse files
authored
Update adafruitio_25_schedule_trigger.ino - make values wipper compatible
1 parent 04e52a3 commit 527328e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/adafruitio_25_schedule_trigger/adafruitio_25_schedule_trigger.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,12 @@ void handleMessage(AdafruitIO_Data *data) {
8080
Serial.println(data->toChar());
8181

8282
// Check to see if the morning scheduled trigger has executed
83-
if (strcmp(data->toChar(), "morning") == 0) {
83+
if (strcmp(data->toChar(), "1") == 0) {
8484
Serial.println("Turning lights ON");
8585
digitalWrite(RELAY_POWER_PIN, HIGH);
8686
}
8787
// Check to see if the evening scheduled trigger has executed
88-
else if (strcmp(data->toChar(), "night") == 0) {
88+
else if (strcmp(data->toChar(), "0") == 0) {
8989
Serial.println("Turning lights OFF");
9090
digitalWrite(RELAY_POWER_PIN, LOW);
9191
}

0 commit comments

Comments
 (0)