From 527328e376bae7a21c38122591de92b1653f2170 Mon Sep 17 00:00:00 2001 From: Tyeth Gundry Date: Wed, 14 May 2025 17:33:49 +0100 Subject: [PATCH 1/3] Update adafruitio_25_schedule_trigger.ino - make values wipper compatible --- .../adafruitio_25_schedule_trigger.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/adafruitio_25_schedule_trigger/adafruitio_25_schedule_trigger.ino b/examples/adafruitio_25_schedule_trigger/adafruitio_25_schedule_trigger.ino index 93f3ddb..3490d53 100644 --- a/examples/adafruitio_25_schedule_trigger/adafruitio_25_schedule_trigger.ino +++ b/examples/adafruitio_25_schedule_trigger/adafruitio_25_schedule_trigger.ino @@ -80,12 +80,12 @@ void handleMessage(AdafruitIO_Data *data) { Serial.println(data->toChar()); // Check to see if the morning scheduled trigger has executed - if (strcmp(data->toChar(), "morning") == 0) { + if (strcmp(data->toChar(), "1") == 0) { Serial.println("Turning lights ON"); digitalWrite(RELAY_POWER_PIN, HIGH); } // Check to see if the evening scheduled trigger has executed - else if (strcmp(data->toChar(), "night") == 0) { + else if (strcmp(data->toChar(), "0") == 0) { Serial.println("Turning lights OFF"); digitalWrite(RELAY_POWER_PIN, LOW); } From 6e2de69a8ee5353b91f70110142b1da7e26b0658 Mon Sep 17 00:00:00 2001 From: Tyeth Gundry Date: Wed, 14 May 2025 17:34:09 +0100 Subject: [PATCH 2/3] Update library.properties --- library.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library.properties b/library.properties index 445bf59..e82661b 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=Adafruit IO Arduino -version=4.3.0 +version=4.3.1 author=Adafruit maintainer=Adafruit sentence=Arduino library to access Adafruit IO. From ef46ac5a6738338da435ea93ccbd89a03839e584 Mon Sep 17 00:00:00 2001 From: tyeth Date: Wed, 14 May 2025 17:42:54 +0100 Subject: [PATCH 3/3] clang format config.h files --- examples/adafruitio_00_publish/config.h | 2 +- examples/adafruitio_01_subscribe/config.h | 2 +- examples/adafruitio_02_pubsub/config.h | 2 +- examples/adafruitio_03_multiple_feeds/config.h | 2 +- examples/adafruitio_04_location/config.h | 2 +- examples/adafruitio_05_type_conversion/config.h | 2 +- examples/adafruitio_06_digital_in/config.h | 2 +- examples/adafruitio_07_digital_out/config.h | 2 +- examples/adafruitio_08_analog_in/config.h | 2 +- examples/adafruitio_09_analog_out/config.h | 2 +- examples/adafruitio_10_dashboard_creation/config.h | 2 +- examples/adafruitio_11_group_pub/config.h | 2 +- examples/adafruitio_12_group_sub/config.h | 2 +- examples/adafruitio_13_rgb/config.h | 2 +- examples/adafruitio_14_neopixel/config.h | 2 +- examples/adafruitio_15_temp_humidity/config.h | 2 +- examples/adafruitio_16_servo/config.h | 2 +- examples/adafruitio_17_time_subscribe/config.h | 2 +- examples/adafruitio_18_device_info/config.h | 2 +- examples/adafruitio_19_deepsleep/config.h | 2 +- examples/adafruitio_20_shared_feed_write/config.h | 2 +- examples/adafruitio_21_feed_read/config.h | 2 +- examples/adafruitio_22_environmental_monitor/config.h | 2 +- examples/adafruitio_23_ifttt/config.h | 2 +- examples/adafruitio_24_zapier/config.h | 2 +- examples/adafruitio_25_schedule_trigger/config.h | 2 +- examples/adafruitio_26_led_btn/config.h | 2 +- examples/io_home_series/io_home_security/config.h | 2 +- examples/io_home_series/neopixel_and_thermometer/config.h | 2 +- 29 files changed, 29 insertions(+), 29 deletions(-) diff --git a/examples/adafruitio_00_publish/config.h b/examples/adafruitio_00_publish/config.h index c7b156f..8ec0728 100644 --- a/examples/adafruitio_00_publish/config.h +++ b/examples/adafruitio_00_publish/config.h @@ -30,7 +30,7 @@ // #define USE_WINC1500 // uncomment the following line if you are using mrk1010 or nano 33 iot -//#define ARDUINO_SAMD_MKR1010 +// #define ARDUINO_SAMD_MKR1010 // comment out the following lines if you are using fona or ethernet #include "AdafruitIO_WiFi.h" diff --git a/examples/adafruitio_01_subscribe/config.h b/examples/adafruitio_01_subscribe/config.h index c7b156f..8ec0728 100644 --- a/examples/adafruitio_01_subscribe/config.h +++ b/examples/adafruitio_01_subscribe/config.h @@ -30,7 +30,7 @@ // #define USE_WINC1500 // uncomment the following line if you are using mrk1010 or nano 33 iot -//#define ARDUINO_SAMD_MKR1010 +// #define ARDUINO_SAMD_MKR1010 // comment out the following lines if you are using fona or ethernet #include "AdafruitIO_WiFi.h" diff --git a/examples/adafruitio_02_pubsub/config.h b/examples/adafruitio_02_pubsub/config.h index 289b880..35a27ea 100644 --- a/examples/adafruitio_02_pubsub/config.h +++ b/examples/adafruitio_02_pubsub/config.h @@ -28,7 +28,7 @@ // #define USE_WINC1500 // uncomment the following line if you are using mrk1010 or nano 33 iot -//#define ARDUINO_SAMD_MKR1010 +// #define ARDUINO_SAMD_MKR1010 // comment out the following lines if you are using fona or ethernet #include "AdafruitIO_WiFi.h" diff --git a/examples/adafruitio_03_multiple_feeds/config.h b/examples/adafruitio_03_multiple_feeds/config.h index c7b156f..8ec0728 100644 --- a/examples/adafruitio_03_multiple_feeds/config.h +++ b/examples/adafruitio_03_multiple_feeds/config.h @@ -30,7 +30,7 @@ // #define USE_WINC1500 // uncomment the following line if you are using mrk1010 or nano 33 iot -//#define ARDUINO_SAMD_MKR1010 +// #define ARDUINO_SAMD_MKR1010 // comment out the following lines if you are using fona or ethernet #include "AdafruitIO_WiFi.h" diff --git a/examples/adafruitio_04_location/config.h b/examples/adafruitio_04_location/config.h index c7b156f..8ec0728 100644 --- a/examples/adafruitio_04_location/config.h +++ b/examples/adafruitio_04_location/config.h @@ -30,7 +30,7 @@ // #define USE_WINC1500 // uncomment the following line if you are using mrk1010 or nano 33 iot -//#define ARDUINO_SAMD_MKR1010 +// #define ARDUINO_SAMD_MKR1010 // comment out the following lines if you are using fona or ethernet #include "AdafruitIO_WiFi.h" diff --git a/examples/adafruitio_05_type_conversion/config.h b/examples/adafruitio_05_type_conversion/config.h index c7b156f..8ec0728 100644 --- a/examples/adafruitio_05_type_conversion/config.h +++ b/examples/adafruitio_05_type_conversion/config.h @@ -30,7 +30,7 @@ // #define USE_WINC1500 // uncomment the following line if you are using mrk1010 or nano 33 iot -//#define ARDUINO_SAMD_MKR1010 +// #define ARDUINO_SAMD_MKR1010 // comment out the following lines if you are using fona or ethernet #include "AdafruitIO_WiFi.h" diff --git a/examples/adafruitio_06_digital_in/config.h b/examples/adafruitio_06_digital_in/config.h index c7b156f..8ec0728 100644 --- a/examples/adafruitio_06_digital_in/config.h +++ b/examples/adafruitio_06_digital_in/config.h @@ -30,7 +30,7 @@ // #define USE_WINC1500 // uncomment the following line if you are using mrk1010 or nano 33 iot -//#define ARDUINO_SAMD_MKR1010 +// #define ARDUINO_SAMD_MKR1010 // comment out the following lines if you are using fona or ethernet #include "AdafruitIO_WiFi.h" diff --git a/examples/adafruitio_07_digital_out/config.h b/examples/adafruitio_07_digital_out/config.h index c7b156f..8ec0728 100644 --- a/examples/adafruitio_07_digital_out/config.h +++ b/examples/adafruitio_07_digital_out/config.h @@ -30,7 +30,7 @@ // #define USE_WINC1500 // uncomment the following line if you are using mrk1010 or nano 33 iot -//#define ARDUINO_SAMD_MKR1010 +// #define ARDUINO_SAMD_MKR1010 // comment out the following lines if you are using fona or ethernet #include "AdafruitIO_WiFi.h" diff --git a/examples/adafruitio_08_analog_in/config.h b/examples/adafruitio_08_analog_in/config.h index c7b156f..8ec0728 100644 --- a/examples/adafruitio_08_analog_in/config.h +++ b/examples/adafruitio_08_analog_in/config.h @@ -30,7 +30,7 @@ // #define USE_WINC1500 // uncomment the following line if you are using mrk1010 or nano 33 iot -//#define ARDUINO_SAMD_MKR1010 +// #define ARDUINO_SAMD_MKR1010 // comment out the following lines if you are using fona or ethernet #include "AdafruitIO_WiFi.h" diff --git a/examples/adafruitio_09_analog_out/config.h b/examples/adafruitio_09_analog_out/config.h index c7b156f..8ec0728 100644 --- a/examples/adafruitio_09_analog_out/config.h +++ b/examples/adafruitio_09_analog_out/config.h @@ -30,7 +30,7 @@ // #define USE_WINC1500 // uncomment the following line if you are using mrk1010 or nano 33 iot -//#define ARDUINO_SAMD_MKR1010 +// #define ARDUINO_SAMD_MKR1010 // comment out the following lines if you are using fona or ethernet #include "AdafruitIO_WiFi.h" diff --git a/examples/adafruitio_10_dashboard_creation/config.h b/examples/adafruitio_10_dashboard_creation/config.h index c7b156f..8ec0728 100644 --- a/examples/adafruitio_10_dashboard_creation/config.h +++ b/examples/adafruitio_10_dashboard_creation/config.h @@ -30,7 +30,7 @@ // #define USE_WINC1500 // uncomment the following line if you are using mrk1010 or nano 33 iot -//#define ARDUINO_SAMD_MKR1010 +// #define ARDUINO_SAMD_MKR1010 // comment out the following lines if you are using fona or ethernet #include "AdafruitIO_WiFi.h" diff --git a/examples/adafruitio_11_group_pub/config.h b/examples/adafruitio_11_group_pub/config.h index c7b156f..8ec0728 100644 --- a/examples/adafruitio_11_group_pub/config.h +++ b/examples/adafruitio_11_group_pub/config.h @@ -30,7 +30,7 @@ // #define USE_WINC1500 // uncomment the following line if you are using mrk1010 or nano 33 iot -//#define ARDUINO_SAMD_MKR1010 +// #define ARDUINO_SAMD_MKR1010 // comment out the following lines if you are using fona or ethernet #include "AdafruitIO_WiFi.h" diff --git a/examples/adafruitio_12_group_sub/config.h b/examples/adafruitio_12_group_sub/config.h index c7b156f..8ec0728 100644 --- a/examples/adafruitio_12_group_sub/config.h +++ b/examples/adafruitio_12_group_sub/config.h @@ -30,7 +30,7 @@ // #define USE_WINC1500 // uncomment the following line if you are using mrk1010 or nano 33 iot -//#define ARDUINO_SAMD_MKR1010 +// #define ARDUINO_SAMD_MKR1010 // comment out the following lines if you are using fona or ethernet #include "AdafruitIO_WiFi.h" diff --git a/examples/adafruitio_13_rgb/config.h b/examples/adafruitio_13_rgb/config.h index c7b156f..8ec0728 100644 --- a/examples/adafruitio_13_rgb/config.h +++ b/examples/adafruitio_13_rgb/config.h @@ -30,7 +30,7 @@ // #define USE_WINC1500 // uncomment the following line if you are using mrk1010 or nano 33 iot -//#define ARDUINO_SAMD_MKR1010 +// #define ARDUINO_SAMD_MKR1010 // comment out the following lines if you are using fona or ethernet #include "AdafruitIO_WiFi.h" diff --git a/examples/adafruitio_14_neopixel/config.h b/examples/adafruitio_14_neopixel/config.h index c7b156f..8ec0728 100644 --- a/examples/adafruitio_14_neopixel/config.h +++ b/examples/adafruitio_14_neopixel/config.h @@ -30,7 +30,7 @@ // #define USE_WINC1500 // uncomment the following line if you are using mrk1010 or nano 33 iot -//#define ARDUINO_SAMD_MKR1010 +// #define ARDUINO_SAMD_MKR1010 // comment out the following lines if you are using fona or ethernet #include "AdafruitIO_WiFi.h" diff --git a/examples/adafruitio_15_temp_humidity/config.h b/examples/adafruitio_15_temp_humidity/config.h index c7b156f..8ec0728 100644 --- a/examples/adafruitio_15_temp_humidity/config.h +++ b/examples/adafruitio_15_temp_humidity/config.h @@ -30,7 +30,7 @@ // #define USE_WINC1500 // uncomment the following line if you are using mrk1010 or nano 33 iot -//#define ARDUINO_SAMD_MKR1010 +// #define ARDUINO_SAMD_MKR1010 // comment out the following lines if you are using fona or ethernet #include "AdafruitIO_WiFi.h" diff --git a/examples/adafruitio_16_servo/config.h b/examples/adafruitio_16_servo/config.h index c7b156f..8ec0728 100644 --- a/examples/adafruitio_16_servo/config.h +++ b/examples/adafruitio_16_servo/config.h @@ -30,7 +30,7 @@ // #define USE_WINC1500 // uncomment the following line if you are using mrk1010 or nano 33 iot -//#define ARDUINO_SAMD_MKR1010 +// #define ARDUINO_SAMD_MKR1010 // comment out the following lines if you are using fona or ethernet #include "AdafruitIO_WiFi.h" diff --git a/examples/adafruitio_17_time_subscribe/config.h b/examples/adafruitio_17_time_subscribe/config.h index c7b156f..8ec0728 100644 --- a/examples/adafruitio_17_time_subscribe/config.h +++ b/examples/adafruitio_17_time_subscribe/config.h @@ -30,7 +30,7 @@ // #define USE_WINC1500 // uncomment the following line if you are using mrk1010 or nano 33 iot -//#define ARDUINO_SAMD_MKR1010 +// #define ARDUINO_SAMD_MKR1010 // comment out the following lines if you are using fona or ethernet #include "AdafruitIO_WiFi.h" diff --git a/examples/adafruitio_18_device_info/config.h b/examples/adafruitio_18_device_info/config.h index c7b156f..8ec0728 100644 --- a/examples/adafruitio_18_device_info/config.h +++ b/examples/adafruitio_18_device_info/config.h @@ -30,7 +30,7 @@ // #define USE_WINC1500 // uncomment the following line if you are using mrk1010 or nano 33 iot -//#define ARDUINO_SAMD_MKR1010 +// #define ARDUINO_SAMD_MKR1010 // comment out the following lines if you are using fona or ethernet #include "AdafruitIO_WiFi.h" diff --git a/examples/adafruitio_19_deepsleep/config.h b/examples/adafruitio_19_deepsleep/config.h index c7b156f..8ec0728 100644 --- a/examples/adafruitio_19_deepsleep/config.h +++ b/examples/adafruitio_19_deepsleep/config.h @@ -30,7 +30,7 @@ // #define USE_WINC1500 // uncomment the following line if you are using mrk1010 or nano 33 iot -//#define ARDUINO_SAMD_MKR1010 +// #define ARDUINO_SAMD_MKR1010 // comment out the following lines if you are using fona or ethernet #include "AdafruitIO_WiFi.h" diff --git a/examples/adafruitio_20_shared_feed_write/config.h b/examples/adafruitio_20_shared_feed_write/config.h index c7b156f..8ec0728 100644 --- a/examples/adafruitio_20_shared_feed_write/config.h +++ b/examples/adafruitio_20_shared_feed_write/config.h @@ -30,7 +30,7 @@ // #define USE_WINC1500 // uncomment the following line if you are using mrk1010 or nano 33 iot -//#define ARDUINO_SAMD_MKR1010 +// #define ARDUINO_SAMD_MKR1010 // comment out the following lines if you are using fona or ethernet #include "AdafruitIO_WiFi.h" diff --git a/examples/adafruitio_21_feed_read/config.h b/examples/adafruitio_21_feed_read/config.h index c7b156f..8ec0728 100644 --- a/examples/adafruitio_21_feed_read/config.h +++ b/examples/adafruitio_21_feed_read/config.h @@ -30,7 +30,7 @@ // #define USE_WINC1500 // uncomment the following line if you are using mrk1010 or nano 33 iot -//#define ARDUINO_SAMD_MKR1010 +// #define ARDUINO_SAMD_MKR1010 // comment out the following lines if you are using fona or ethernet #include "AdafruitIO_WiFi.h" diff --git a/examples/adafruitio_22_environmental_monitor/config.h b/examples/adafruitio_22_environmental_monitor/config.h index c7b156f..8ec0728 100644 --- a/examples/adafruitio_22_environmental_monitor/config.h +++ b/examples/adafruitio_22_environmental_monitor/config.h @@ -30,7 +30,7 @@ // #define USE_WINC1500 // uncomment the following line if you are using mrk1010 or nano 33 iot -//#define ARDUINO_SAMD_MKR1010 +// #define ARDUINO_SAMD_MKR1010 // comment out the following lines if you are using fona or ethernet #include "AdafruitIO_WiFi.h" diff --git a/examples/adafruitio_23_ifttt/config.h b/examples/adafruitio_23_ifttt/config.h index 289b880..35a27ea 100644 --- a/examples/adafruitio_23_ifttt/config.h +++ b/examples/adafruitio_23_ifttt/config.h @@ -28,7 +28,7 @@ // #define USE_WINC1500 // uncomment the following line if you are using mrk1010 or nano 33 iot -//#define ARDUINO_SAMD_MKR1010 +// #define ARDUINO_SAMD_MKR1010 // comment out the following lines if you are using fona or ethernet #include "AdafruitIO_WiFi.h" diff --git a/examples/adafruitio_24_zapier/config.h b/examples/adafruitio_24_zapier/config.h index c7b156f..8ec0728 100644 --- a/examples/adafruitio_24_zapier/config.h +++ b/examples/adafruitio_24_zapier/config.h @@ -30,7 +30,7 @@ // #define USE_WINC1500 // uncomment the following line if you are using mrk1010 or nano 33 iot -//#define ARDUINO_SAMD_MKR1010 +// #define ARDUINO_SAMD_MKR1010 // comment out the following lines if you are using fona or ethernet #include "AdafruitIO_WiFi.h" diff --git a/examples/adafruitio_25_schedule_trigger/config.h b/examples/adafruitio_25_schedule_trigger/config.h index 7440cad..25cd8f5 100644 --- a/examples/adafruitio_25_schedule_trigger/config.h +++ b/examples/adafruitio_25_schedule_trigger/config.h @@ -22,7 +22,7 @@ #define WIFI_PASS "your_pass" // uncomment the following line if you are using airlift -//#define USE_AIRLIFT +// #define USE_AIRLIFT // uncomment the following line if you are using winc1500 // #define USE_WINC1500 diff --git a/examples/adafruitio_26_led_btn/config.h b/examples/adafruitio_26_led_btn/config.h index 7440cad..25cd8f5 100644 --- a/examples/adafruitio_26_led_btn/config.h +++ b/examples/adafruitio_26_led_btn/config.h @@ -22,7 +22,7 @@ #define WIFI_PASS "your_pass" // uncomment the following line if you are using airlift -//#define USE_AIRLIFT +// #define USE_AIRLIFT // uncomment the following line if you are using winc1500 // #define USE_WINC1500 diff --git a/examples/io_home_series/io_home_security/config.h b/examples/io_home_series/io_home_security/config.h index c7b156f..8ec0728 100644 --- a/examples/io_home_series/io_home_security/config.h +++ b/examples/io_home_series/io_home_security/config.h @@ -30,7 +30,7 @@ // #define USE_WINC1500 // uncomment the following line if you are using mrk1010 or nano 33 iot -//#define ARDUINO_SAMD_MKR1010 +// #define ARDUINO_SAMD_MKR1010 // comment out the following lines if you are using fona or ethernet #include "AdafruitIO_WiFi.h" diff --git a/examples/io_home_series/neopixel_and_thermometer/config.h b/examples/io_home_series/neopixel_and_thermometer/config.h index c7b156f..8ec0728 100644 --- a/examples/io_home_series/neopixel_and_thermometer/config.h +++ b/examples/io_home_series/neopixel_and_thermometer/config.h @@ -30,7 +30,7 @@ // #define USE_WINC1500 // uncomment the following line if you are using mrk1010 or nano 33 iot -//#define ARDUINO_SAMD_MKR1010 +// #define ARDUINO_SAMD_MKR1010 // comment out the following lines if you are using fona or ethernet #include "AdafruitIO_WiFi.h"