Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Update schedule example #174

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/adafruitio_00_publish/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion examples/adafruitio_01_subscribe/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion examples/adafruitio_02_pubsub/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion examples/adafruitio_03_multiple_feeds/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion examples/adafruitio_04_location/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion examples/adafruitio_05_type_conversion/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion examples/adafruitio_06_digital_in/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion examples/adafruitio_07_digital_out/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion examples/adafruitio_08_analog_in/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion examples/adafruitio_09_analog_out/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion examples/adafruitio_10_dashboard_creation/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion examples/adafruitio_11_group_pub/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion examples/adafruitio_12_group_sub/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion examples/adafruitio_13_rgb/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion examples/adafruitio_14_neopixel/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion examples/adafruitio_15_temp_humidity/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion examples/adafruitio_16_servo/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion examples/adafruitio_17_time_subscribe/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion examples/adafruitio_18_device_info/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion examples/adafruitio_19_deepsleep/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion examples/adafruitio_20_shared_feed_write/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion examples/adafruitio_21_feed_read/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion examples/adafruitio_22_environmental_monitor/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion examples/adafruitio_23_ifttt/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion examples/adafruitio_24_zapier/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion examples/adafruitio_25_schedule_trigger/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/adafruitio_26_led_btn/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/io_home_series/io_home_security/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion examples/io_home_series/neopixel_and_thermometer/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Adafruit IO Arduino
version=4.3.0
version=4.3.1
author=Adafruit
maintainer=Adafruit <[email protected]>
sentence=Arduino library to access Adafruit IO.
Expand Down