We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04e52a3 commit 527328eCopy full SHA for 527328e
examples/adafruitio_25_schedule_trigger/adafruitio_25_schedule_trigger.ino
@@ -80,12 +80,12 @@ void handleMessage(AdafruitIO_Data *data) {
80
Serial.println(data->toChar());
81
82
// Check to see if the morning scheduled trigger has executed
83
- if (strcmp(data->toChar(), "morning") == 0) {
+ if (strcmp(data->toChar(), "1") == 0) {
84
Serial.println("Turning lights ON");
85
digitalWrite(RELAY_POWER_PIN, HIGH);
86
}
87
// Check to see if the evening scheduled trigger has executed
88
- else if (strcmp(data->toChar(), "night") == 0) {
+ else if (strcmp(data->toChar(), "0") == 0) {
89
Serial.println("Turning lights OFF");
90
digitalWrite(RELAY_POWER_PIN, LOW);
91
0 commit comments