Skip to content

Commit 93251aa

Browse files
authored
Merge pull request #174 from adafruit/update-schedule-example
Update schedule example
2 parents 04e52a3 + ef46ac5 commit 93251aa

File tree

31 files changed

+32
-32
lines changed

31 files changed

+32
-32
lines changed

examples/adafruitio_00_publish/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
// #define USE_WINC1500
3131

3232
// uncomment the following line if you are using mrk1010 or nano 33 iot
33-
//#define ARDUINO_SAMD_MKR1010
33+
// #define ARDUINO_SAMD_MKR1010
3434

3535
// comment out the following lines if you are using fona or ethernet
3636
#include "AdafruitIO_WiFi.h"

examples/adafruitio_01_subscribe/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
// #define USE_WINC1500
3131

3232
// uncomment the following line if you are using mrk1010 or nano 33 iot
33-
//#define ARDUINO_SAMD_MKR1010
33+
// #define ARDUINO_SAMD_MKR1010
3434

3535
// comment out the following lines if you are using fona or ethernet
3636
#include "AdafruitIO_WiFi.h"

examples/adafruitio_02_pubsub/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
// #define USE_WINC1500
2929

3030
// uncomment the following line if you are using mrk1010 or nano 33 iot
31-
//#define ARDUINO_SAMD_MKR1010
31+
// #define ARDUINO_SAMD_MKR1010
3232

3333
// comment out the following lines if you are using fona or ethernet
3434
#include "AdafruitIO_WiFi.h"

examples/adafruitio_03_multiple_feeds/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
// #define USE_WINC1500
3131

3232
// uncomment the following line if you are using mrk1010 or nano 33 iot
33-
//#define ARDUINO_SAMD_MKR1010
33+
// #define ARDUINO_SAMD_MKR1010
3434

3535
// comment out the following lines if you are using fona or ethernet
3636
#include "AdafruitIO_WiFi.h"

examples/adafruitio_04_location/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
// #define USE_WINC1500
3131

3232
// uncomment the following line if you are using mrk1010 or nano 33 iot
33-
//#define ARDUINO_SAMD_MKR1010
33+
// #define ARDUINO_SAMD_MKR1010
3434

3535
// comment out the following lines if you are using fona or ethernet
3636
#include "AdafruitIO_WiFi.h"

examples/adafruitio_05_type_conversion/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
// #define USE_WINC1500
3131

3232
// uncomment the following line if you are using mrk1010 or nano 33 iot
33-
//#define ARDUINO_SAMD_MKR1010
33+
// #define ARDUINO_SAMD_MKR1010
3434

3535
// comment out the following lines if you are using fona or ethernet
3636
#include "AdafruitIO_WiFi.h"

examples/adafruitio_06_digital_in/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
// #define USE_WINC1500
3131

3232
// uncomment the following line if you are using mrk1010 or nano 33 iot
33-
//#define ARDUINO_SAMD_MKR1010
33+
// #define ARDUINO_SAMD_MKR1010
3434

3535
// comment out the following lines if you are using fona or ethernet
3636
#include "AdafruitIO_WiFi.h"

examples/adafruitio_07_digital_out/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
// #define USE_WINC1500
3131

3232
// uncomment the following line if you are using mrk1010 or nano 33 iot
33-
//#define ARDUINO_SAMD_MKR1010
33+
// #define ARDUINO_SAMD_MKR1010
3434

3535
// comment out the following lines if you are using fona or ethernet
3636
#include "AdafruitIO_WiFi.h"

examples/adafruitio_08_analog_in/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
// #define USE_WINC1500
3131

3232
// uncomment the following line if you are using mrk1010 or nano 33 iot
33-
//#define ARDUINO_SAMD_MKR1010
33+
// #define ARDUINO_SAMD_MKR1010
3434

3535
// comment out the following lines if you are using fona or ethernet
3636
#include "AdafruitIO_WiFi.h"

examples/adafruitio_09_analog_out/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
// #define USE_WINC1500
3131

3232
// uncomment the following line if you are using mrk1010 or nano 33 iot
33-
//#define ARDUINO_SAMD_MKR1010
33+
// #define ARDUINO_SAMD_MKR1010
3434

3535
// comment out the following lines if you are using fona or ethernet
3636
#include "AdafruitIO_WiFi.h"

examples/adafruitio_10_dashboard_creation/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
// #define USE_WINC1500
3131

3232
// uncomment the following line if you are using mrk1010 or nano 33 iot
33-
//#define ARDUINO_SAMD_MKR1010
33+
// #define ARDUINO_SAMD_MKR1010
3434

3535
// comment out the following lines if you are using fona or ethernet
3636
#include "AdafruitIO_WiFi.h"

examples/adafruitio_11_group_pub/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
// #define USE_WINC1500
3131

3232
// uncomment the following line if you are using mrk1010 or nano 33 iot
33-
//#define ARDUINO_SAMD_MKR1010
33+
// #define ARDUINO_SAMD_MKR1010
3434

3535
// comment out the following lines if you are using fona or ethernet
3636
#include "AdafruitIO_WiFi.h"

examples/adafruitio_12_group_sub/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
// #define USE_WINC1500
3131

3232
// uncomment the following line if you are using mrk1010 or nano 33 iot
33-
//#define ARDUINO_SAMD_MKR1010
33+
// #define ARDUINO_SAMD_MKR1010
3434

3535
// comment out the following lines if you are using fona or ethernet
3636
#include "AdafruitIO_WiFi.h"

examples/adafruitio_13_rgb/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
// #define USE_WINC1500
3131

3232
// uncomment the following line if you are using mrk1010 or nano 33 iot
33-
//#define ARDUINO_SAMD_MKR1010
33+
// #define ARDUINO_SAMD_MKR1010
3434

3535
// comment out the following lines if you are using fona or ethernet
3636
#include "AdafruitIO_WiFi.h"

examples/adafruitio_14_neopixel/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
// #define USE_WINC1500
3131

3232
// uncomment the following line if you are using mrk1010 or nano 33 iot
33-
//#define ARDUINO_SAMD_MKR1010
33+
// #define ARDUINO_SAMD_MKR1010
3434

3535
// comment out the following lines if you are using fona or ethernet
3636
#include "AdafruitIO_WiFi.h"

examples/adafruitio_15_temp_humidity/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
// #define USE_WINC1500
3131

3232
// uncomment the following line if you are using mrk1010 or nano 33 iot
33-
//#define ARDUINO_SAMD_MKR1010
33+
// #define ARDUINO_SAMD_MKR1010
3434

3535
// comment out the following lines if you are using fona or ethernet
3636
#include "AdafruitIO_WiFi.h"

examples/adafruitio_16_servo/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
// #define USE_WINC1500
3131

3232
// uncomment the following line if you are using mrk1010 or nano 33 iot
33-
//#define ARDUINO_SAMD_MKR1010
33+
// #define ARDUINO_SAMD_MKR1010
3434

3535
// comment out the following lines if you are using fona or ethernet
3636
#include "AdafruitIO_WiFi.h"

examples/adafruitio_17_time_subscribe/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
// #define USE_WINC1500
3131

3232
// uncomment the following line if you are using mrk1010 or nano 33 iot
33-
//#define ARDUINO_SAMD_MKR1010
33+
// #define ARDUINO_SAMD_MKR1010
3434

3535
// comment out the following lines if you are using fona or ethernet
3636
#include "AdafruitIO_WiFi.h"

examples/adafruitio_18_device_info/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
// #define USE_WINC1500
3131

3232
// uncomment the following line if you are using mrk1010 or nano 33 iot
33-
//#define ARDUINO_SAMD_MKR1010
33+
// #define ARDUINO_SAMD_MKR1010
3434

3535
// comment out the following lines if you are using fona or ethernet
3636
#include "AdafruitIO_WiFi.h"

examples/adafruitio_19_deepsleep/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
// #define USE_WINC1500
3131

3232
// uncomment the following line if you are using mrk1010 or nano 33 iot
33-
//#define ARDUINO_SAMD_MKR1010
33+
// #define ARDUINO_SAMD_MKR1010
3434

3535
// comment out the following lines if you are using fona or ethernet
3636
#include "AdafruitIO_WiFi.h"

examples/adafruitio_20_shared_feed_write/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
// #define USE_WINC1500
3131

3232
// uncomment the following line if you are using mrk1010 or nano 33 iot
33-
//#define ARDUINO_SAMD_MKR1010
33+
// #define ARDUINO_SAMD_MKR1010
3434

3535
// comment out the following lines if you are using fona or ethernet
3636
#include "AdafruitIO_WiFi.h"

examples/adafruitio_21_feed_read/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
// #define USE_WINC1500
3131

3232
// uncomment the following line if you are using mrk1010 or nano 33 iot
33-
//#define ARDUINO_SAMD_MKR1010
33+
// #define ARDUINO_SAMD_MKR1010
3434

3535
// comment out the following lines if you are using fona or ethernet
3636
#include "AdafruitIO_WiFi.h"

examples/adafruitio_22_environmental_monitor/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
// #define USE_WINC1500
3131

3232
// uncomment the following line if you are using mrk1010 or nano 33 iot
33-
//#define ARDUINO_SAMD_MKR1010
33+
// #define ARDUINO_SAMD_MKR1010
3434

3535
// comment out the following lines if you are using fona or ethernet
3636
#include "AdafruitIO_WiFi.h"

examples/adafruitio_23_ifttt/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
// #define USE_WINC1500
2929

3030
// uncomment the following line if you are using mrk1010 or nano 33 iot
31-
//#define ARDUINO_SAMD_MKR1010
31+
// #define ARDUINO_SAMD_MKR1010
3232

3333
// comment out the following lines if you are using fona or ethernet
3434
#include "AdafruitIO_WiFi.h"

examples/adafruitio_24_zapier/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
// #define USE_WINC1500
3131

3232
// uncomment the following line if you are using mrk1010 or nano 33 iot
33-
//#define ARDUINO_SAMD_MKR1010
33+
// #define ARDUINO_SAMD_MKR1010
3434

3535
// comment out the following lines if you are using fona or ethernet
3636
#include "AdafruitIO_WiFi.h"

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
}

examples/adafruitio_25_schedule_trigger/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#define WIFI_PASS "your_pass"
2323

2424
// uncomment the following line if you are using airlift
25-
//#define USE_AIRLIFT
25+
// #define USE_AIRLIFT
2626

2727
// uncomment the following line if you are using winc1500
2828
// #define USE_WINC1500

examples/adafruitio_26_led_btn/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#define WIFI_PASS "your_pass"
2323

2424
// uncomment the following line if you are using airlift
25-
//#define USE_AIRLIFT
25+
// #define USE_AIRLIFT
2626

2727
// uncomment the following line if you are using winc1500
2828
// #define USE_WINC1500

examples/io_home_series/io_home_security/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
// #define USE_WINC1500
3131

3232
// uncomment the following line if you are using mrk1010 or nano 33 iot
33-
//#define ARDUINO_SAMD_MKR1010
33+
// #define ARDUINO_SAMD_MKR1010
3434

3535
// comment out the following lines if you are using fona or ethernet
3636
#include "AdafruitIO_WiFi.h"

examples/io_home_series/neopixel_and_thermometer/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
// #define USE_WINC1500
3131

3232
// uncomment the following line if you are using mrk1010 or nano 33 iot
33-
//#define ARDUINO_SAMD_MKR1010
33+
// #define ARDUINO_SAMD_MKR1010
3434

3535
// comment out the following lines if you are using fona or ethernet
3636
#include "AdafruitIO_WiFi.h"

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Adafruit IO Arduino
2-
version=4.3.0
2+
version=4.3.1
33
author=Adafruit
44
maintainer=Adafruit <adafruitio@adafruit.com>
55
sentence=Arduino library to access Adafruit IO.

0 commit comments

Comments
 (0)