From af5f7cc1702f061458ebd339f647f2f7134b8974 Mon Sep 17 00:00:00 2001 From: bradrblack Date: Thu, 18 Aug 2022 18:14:12 -0400 Subject: [PATCH 01/18] Adding WiFiManager Example Sketch --- examples/adafruitio_27_wifimanager.ino | 80 ++++++++++++++++++++++++++ library.properties | 2 +- 2 files changed, 81 insertions(+), 1 deletion(-) create mode 100644 examples/adafruitio_27_wifimanager.ino diff --git a/examples/adafruitio_27_wifimanager.ino b/examples/adafruitio_27_wifimanager.ino new file mode 100644 index 0000000..647d053 --- /dev/null +++ b/examples/adafruitio_27_wifimanager.ino @@ -0,0 +1,80 @@ +/* Adafruit IO Example Using WiFiManager + * + * This is a simple Adafruit feed subscribe example that uses + * WiFiManager to handle setup of WiFi credentials and connecting + * to the network instead of defining the WiFI SSID and password + * explicitly in the code. + * + * To use this example, add your Adafruit IO Username and Key + * and setup a feed called "myfeed". When you manually add data + * to the feed on io.adafruit.com, you'll see that data written to + * the serial output. + * + * Brad Black - 2022 + * + */ + +#include +#include "AdafruitIO_WiFi.h" + +char IO_USERNAME[64] = "my username"; +char IO_KEY[64] = "my key"; +AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, "", ""); +AdafruitIO_Feed *myfeed = io.feed("myfeed"); + +WiFiManager wifiManager; + +void handleMessage(AdafruitIO_Data *data) +{ + + Serial.print("received <- "); + Serial.println(data->toString()); + +} // handleMessage + +void setup() + +{ + Serial.begin(115200); // Initialize serial port for debugging. + delay(500); + + // wifiManager.resetSettings(); //uncomment to reset the WiFi settings + + wifiManager.setClass("invert"); // enable "dark mode" for the config portal + wifiManager.setConfigPortalTimeout(120); // auto close configportal after n seconds + wifiManager.setAPClientCheck(true); // avoid timeout if client connected to softap + + if (!wifiManager.autoConnect("WiFi Setup")) // connect to wifi with existing setting or start config + { + Serial.println("failed to connect and hit timeout"); + } + else + { + // if you get here you have connected to the WiFi + Serial.println("Connected to WiFi."); + + Serial.printf("Connecting to Adafruit IO with User: %s Key: %s.\n", IO_USERNAME, IO_KEY); + io.connect(); + + myfeed->onMessage(handleMessage); + + myfeed->get(); + + // wait for a connection + + while ((io.status() < AIO_CONNECTED)) + { + Serial.print("."); + delay(500); + } + Serial.println("Connected to Adafruit IO."); + } + +} // setup() + +void loop() +{ + + io.run(); + +} // loop() diff --git a/library.properties b/library.properties index c47fd80..c9aace6 100644 --- a/library.properties +++ b/library.properties @@ -7,4 +7,4 @@ paragraph=Arduino library to access Adafruit IO using the Adafruit AirLift, ESP8 category=Communication url=https://github.com/adafruit/Adafruit_IO_Arduino architectures=* -depends=Adafruit MQTT Library, ArduinoHttpClient, Adafruit Unified Sensor, Adafruit NeoPixel, DHT sensor library, Ethernet, Adafruit Si7021 Library, Adafruit SGP30 Sensor, Adafruit BME280 Library, Adafruit LIS3DH, Adafruit VEML6070 Library, ESP32Servo +depends=Adafruit MQTT Library, ArduinoHttpClient, Adafruit Unified Sensor, Adafruit NeoPixel, DHT sensor library, Ethernet, Adafruit Si7021 Library, Adafruit SGP30 Sensor, Adafruit BME280 Library, Adafruit LIS3DH, Adafruit VEML6070 Library, ESP32Servo, WiFiManager From d98ea30a2c88052b3c895587c697d6e888287250 Mon Sep 17 00:00:00 2001 From: bradrblack Date: Fri, 19 Aug 2022 12:15:44 -0400 Subject: [PATCH 02/18] Revert "Adding WiFiManager Example Sketch" This reverts commit af5f7cc1702f061458ebd339f647f2f7134b8974. --- examples/adafruitio_27_wifimanager.ino | 80 -------------------------- library.properties | 2 +- 2 files changed, 1 insertion(+), 81 deletions(-) delete mode 100644 examples/adafruitio_27_wifimanager.ino diff --git a/examples/adafruitio_27_wifimanager.ino b/examples/adafruitio_27_wifimanager.ino deleted file mode 100644 index 647d053..0000000 --- a/examples/adafruitio_27_wifimanager.ino +++ /dev/null @@ -1,80 +0,0 @@ -/* Adafruit IO Example Using WiFiManager - * - * This is a simple Adafruit feed subscribe example that uses - * WiFiManager to handle setup of WiFi credentials and connecting - * to the network instead of defining the WiFI SSID and password - * explicitly in the code. - * - * To use this example, add your Adafruit IO Username and Key - * and setup a feed called "myfeed". When you manually add data - * to the feed on io.adafruit.com, you'll see that data written to - * the serial output. - * - * Brad Black - 2022 - * - */ - -#include -#include "AdafruitIO_WiFi.h" - -char IO_USERNAME[64] = "my username"; -char IO_KEY[64] = "my key"; -AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, "", ""); -AdafruitIO_Feed *myfeed = io.feed("myfeed"); - -WiFiManager wifiManager; - -void handleMessage(AdafruitIO_Data *data) -{ - - Serial.print("received <- "); - Serial.println(data->toString()); - -} // handleMessage - -void setup() - -{ - Serial.begin(115200); // Initialize serial port for debugging. - delay(500); - - // wifiManager.resetSettings(); //uncomment to reset the WiFi settings - - wifiManager.setClass("invert"); // enable "dark mode" for the config portal - wifiManager.setConfigPortalTimeout(120); // auto close configportal after n seconds - wifiManager.setAPClientCheck(true); // avoid timeout if client connected to softap - - if (!wifiManager.autoConnect("WiFi Setup")) // connect to wifi with existing setting or start config - { - Serial.println("failed to connect and hit timeout"); - } - else - { - // if you get here you have connected to the WiFi - Serial.println("Connected to WiFi."); - - Serial.printf("Connecting to Adafruit IO with User: %s Key: %s.\n", IO_USERNAME, IO_KEY); - io.connect(); - - myfeed->onMessage(handleMessage); - - myfeed->get(); - - // wait for a connection - - while ((io.status() < AIO_CONNECTED)) - { - Serial.print("."); - delay(500); - } - Serial.println("Connected to Adafruit IO."); - } - -} // setup() - -void loop() -{ - - io.run(); - -} // loop() diff --git a/library.properties b/library.properties index c9aace6..c47fd80 100644 --- a/library.properties +++ b/library.properties @@ -7,4 +7,4 @@ paragraph=Arduino library to access Adafruit IO using the Adafruit AirLift, ESP8 category=Communication url=https://github.com/adafruit/Adafruit_IO_Arduino architectures=* -depends=Adafruit MQTT Library, ArduinoHttpClient, Adafruit Unified Sensor, Adafruit NeoPixel, DHT sensor library, Ethernet, Adafruit Si7021 Library, Adafruit SGP30 Sensor, Adafruit BME280 Library, Adafruit LIS3DH, Adafruit VEML6070 Library, ESP32Servo, WiFiManager +depends=Adafruit MQTT Library, ArduinoHttpClient, Adafruit Unified Sensor, Adafruit NeoPixel, DHT sensor library, Ethernet, Adafruit Si7021 Library, Adafruit SGP30 Sensor, Adafruit BME280 Library, Adafruit LIS3DH, Adafruit VEML6070 Library, ESP32Servo From 97d093dc298a09f90e8262749906d7b4c2135c48 Mon Sep 17 00:00:00 2001 From: bradrblack Date: Fri, 19 Aug 2022 12:17:37 -0400 Subject: [PATCH 03/18] Moving example sketch to subdir --- .../adafruitio_27_wifimanager.ino | 80 +++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 examples/adafruitio_27_wifimanager/adafruitio_27_wifimanager.ino diff --git a/examples/adafruitio_27_wifimanager/adafruitio_27_wifimanager.ino b/examples/adafruitio_27_wifimanager/adafruitio_27_wifimanager.ino new file mode 100644 index 0000000..647d053 --- /dev/null +++ b/examples/adafruitio_27_wifimanager/adafruitio_27_wifimanager.ino @@ -0,0 +1,80 @@ +/* Adafruit IO Example Using WiFiManager + * + * This is a simple Adafruit feed subscribe example that uses + * WiFiManager to handle setup of WiFi credentials and connecting + * to the network instead of defining the WiFI SSID and password + * explicitly in the code. + * + * To use this example, add your Adafruit IO Username and Key + * and setup a feed called "myfeed". When you manually add data + * to the feed on io.adafruit.com, you'll see that data written to + * the serial output. + * + * Brad Black - 2022 + * + */ + +#include +#include "AdafruitIO_WiFi.h" + +char IO_USERNAME[64] = "my username"; +char IO_KEY[64] = "my key"; +AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, "", ""); +AdafruitIO_Feed *myfeed = io.feed("myfeed"); + +WiFiManager wifiManager; + +void handleMessage(AdafruitIO_Data *data) +{ + + Serial.print("received <- "); + Serial.println(data->toString()); + +} // handleMessage + +void setup() + +{ + Serial.begin(115200); // Initialize serial port for debugging. + delay(500); + + // wifiManager.resetSettings(); //uncomment to reset the WiFi settings + + wifiManager.setClass("invert"); // enable "dark mode" for the config portal + wifiManager.setConfigPortalTimeout(120); // auto close configportal after n seconds + wifiManager.setAPClientCheck(true); // avoid timeout if client connected to softap + + if (!wifiManager.autoConnect("WiFi Setup")) // connect to wifi with existing setting or start config + { + Serial.println("failed to connect and hit timeout"); + } + else + { + // if you get here you have connected to the WiFi + Serial.println("Connected to WiFi."); + + Serial.printf("Connecting to Adafruit IO with User: %s Key: %s.\n", IO_USERNAME, IO_KEY); + io.connect(); + + myfeed->onMessage(handleMessage); + + myfeed->get(); + + // wait for a connection + + while ((io.status() < AIO_CONNECTED)) + { + Serial.print("."); + delay(500); + } + Serial.println("Connected to Adafruit IO."); + } + +} // setup() + +void loop() +{ + + io.run(); + +} // loop() From eb3379d6c5c18462bc833cc45ac4ba89e3f06826 Mon Sep 17 00:00:00 2001 From: bradrblack Date: Fri, 19 Aug 2022 14:28:15 -0400 Subject: [PATCH 04/18] Adding new example with custom AIO parameters --- ...o_28_wifimanager-custom-aio-parameters.ino | 191 ++++++++++++++++++ 1 file changed, 191 insertions(+) create mode 100644 examples/adafruitio_28_wifimanager-custom-aio-parameters/adafruitio_28_wifimanager-custom-aio-parameters.ino diff --git a/examples/adafruitio_28_wifimanager-custom-aio-parameters/adafruitio_28_wifimanager-custom-aio-parameters.ino b/examples/adafruitio_28_wifimanager-custom-aio-parameters/adafruitio_28_wifimanager-custom-aio-parameters.ino new file mode 100644 index 0000000..3db9eed --- /dev/null +++ b/examples/adafruitio_28_wifimanager-custom-aio-parameters/adafruitio_28_wifimanager-custom-aio-parameters.ino @@ -0,0 +1,191 @@ +/* Adafruit IO Example Using WiFiManager with Custom Adafruit IO parameters + * + * This is a simple Adafruit feed subscribe example that uses + * WiFiManager to handle setup of WiFi credentials and connecting + * to the network instead of defining the WiFI SSID and password + * explicitly in the code. + * + * In addition, the examples allows you to enter your Adafruit IO username and key + * as customer parameters in WiFiManager so that they do not need to be coded into + * the sketch. + * + * To use this example, setup a feed called "myfeed". When the ESP8266 or ESP32 + * microcontroller starts, join the "WiFi Setup" SSID and you should be presetned + * with the config portal. If the config portal does not automatically start you + * can browse to http://192.168.4.1 to access it + * + * Select the SSID and enter the password for WiFi Access in the config portal. + * Enter your Adafruit IO username and key in the config portal and select "Save". + * + * When you manually add data to the feed on io.adafruit.com, you'll see + * that data written to the serial output. + * + * Brad Black - 2022 + * + */ + +#include +#include "AdafruitIO_WiFi.h" +#include +#include + +#ifdef ESP32 +//#define LittleFS LITTLEFS +#endif + +char IO_USERNAME[64] = ""; +char IO_KEY[64] = ""; + +// AdafruitIO_Feed *myfeed = io.feed("myfeed"); + +static uint8_t objStorage[sizeof(AdafruitIO_WiFi)]; // RAM for the object +AdafruitIO_WiFi *io; // a pointer to the object, once it's constructed + +WiFiManager wifiManager; +WiFiManagerParameter custom_IO_USERNAME("iouser", "Adafruit IO Username", IO_USERNAME, 60); +WiFiManagerParameter custom_IO_KEY("iokey", "Adafruit IO Key", IO_KEY, 60); + +void handleMessage(AdafruitIO_Data *data) +{ + + Serial.print("received <- "); + Serial.println(data->toString()); + +} // handleMessage + +// callback notifying us of the need to save config +void saveConfigCallback() +{ + + Serial.println("Saving new config"); + + strcpy(IO_USERNAME, custom_IO_USERNAME.getValue()); + strcpy(IO_KEY, custom_IO_KEY.getValue()); + + DynamicJsonDocument json(256); + + json["IO_KEY"] = IO_KEY; + json["IO_USERNAME"] = IO_USERNAME; + + File configFile = LittleFS.open("/config.json", "w"); + if (!configFile) + { + Serial.println("Failed to open config file for writing"); + } + + serializeJson(json, Serial); + + serializeJson(json, configFile); + + configFile.close(); +} // end save + +void readParamsFromFS() +{ + if (LittleFS.begin()) + { + + if (LittleFS.exists("/config.json")) + { + // file exists, reading and loading + Serial.println("Reading config file"); + + File configFile = LittleFS.open("/config.json", "r"); + if (configFile) + { + size_t size = configFile.size(); + // Allocate a buffer to store contents of the file. + std::unique_ptr buf(new char[size]); + + configFile.readBytes(buf.get(), size); + + DynamicJsonDocument json(256); + auto deserializeError = deserializeJson(json, buf.get()); + serializeJson(json, Serial); + Serial.println(); + if (!deserializeError) + { + + if (json.containsKey("IO_USERNAME")) + strcpy(IO_USERNAME, json["IO_USERNAME"]); + if (json.containsKey("IO_KEY")) + strcpy(IO_KEY, json["IO_KEY"]); + } + else + { + Serial.println("Failed to load json config"); + } + configFile.close(); + } + } + + else + { + Serial.println("Failed to mount FS"); + } + } +} +void setup() + +{ + Serial.begin(115200); // Initialize serial port for debugging. + delay(500); + + readParamsFromFS(); // get parameters fro file system + + // wifiManager.resetSettings(); //uncomment to reset the WiFi settings + // LittleFS.format(); // uncomment to format file system + + wifiManager.setClass("invert"); // enable "dark mode" for the config portal + wifiManager.setConfigPortalTimeout(120); // auto close configportal after n seconds + wifiManager.setAPClientCheck(true); // avoid timeout if client connected to softap + + wifiManager.addParameter(&custom_IO_USERNAME); // set custom paraeter for IO username + wifiManager.addParameter(&custom_IO_KEY); // set custom parameter for IO key + + custom_IO_KEY.setValue(IO_KEY, 64); // set custom parameter value + custom_IO_USERNAME.setValue(IO_USERNAME, 64); // set custom parameter value + + wifiManager.setSaveConfigCallback(saveConfigCallback); // set config save notify callback + + if (!wifiManager.autoConnect("WiFi Setup")) // connect to wifi with existing setting or start config + { + Serial.println("Failed to connect and hit timeout"); + } + else + { + // if you get here you have connected to the WiFi + Serial.println("Connected to WiFi."); + + // connect to Adafruit IO + + io = new (objStorage) AdafruitIO_WiFi(IO_USERNAME, IO_KEY, "", ""); + + Serial.printf("Connecting to Adafruit IO with User: %s Key: %s.\n", IO_USERNAME, IO_KEY); + + io->connect(); + + AdafruitIO_Feed *myfeed = io->feed("myfeed"); + + myfeed->onMessage(handleMessage); + + myfeed->get(); + + // wait for a connection + + while ((io->status() < AIO_CONNECTED)) + { + Serial.print("."); + delay(500); + } + Serial.println("Connected to Adafruit IO."); + } + +} // setup() + +void loop() +{ + + io->run(); + +} // loop() From f3ff8ea03a756b0455d83957942f8a5ea7f84de7 Mon Sep 17 00:00:00 2001 From: bradrblack Date: Fri, 19 Aug 2022 14:53:26 -0400 Subject: [PATCH 05/18] Minor changes --- ...io_28_wifimanager-custom-aio-parameters.ino | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/examples/adafruitio_28_wifimanager-custom-aio-parameters/adafruitio_28_wifimanager-custom-aio-parameters.ino b/examples/adafruitio_28_wifimanager-custom-aio-parameters/adafruitio_28_wifimanager-custom-aio-parameters.ino index 3db9eed..5b64892 100644 --- a/examples/adafruitio_28_wifimanager-custom-aio-parameters/adafruitio_28_wifimanager-custom-aio-parameters.ino +++ b/examples/adafruitio_28_wifimanager-custom-aio-parameters/adafruitio_28_wifimanager-custom-aio-parameters.ino @@ -5,12 +5,17 @@ * to the network instead of defining the WiFI SSID and password * explicitly in the code. * - * In addition, the examples allows you to enter your Adafruit IO username and key + * In addition, this example allows you to enter your Adafruit IO username and key * as customer parameters in WiFiManager so that they do not need to be coded into * the sketch. + * + * This is useful if you want to create projects and share them with others that + * may use them on a different WiFi network and use a different Adafruit IO account + * for IOT integrations such as collecting sensor data or voice command integration via + * IFFT. * * To use this example, setup a feed called "myfeed". When the ESP8266 or ESP32 - * microcontroller starts, join the "WiFi Setup" SSID and you should be presetned + * microcontroller starts, join the "WiFi Setup" SSID and you should be presented * with the config portal. If the config portal does not automatically start you * can browse to http://192.168.4.1 to access it * @@ -41,6 +46,8 @@ char IO_KEY[64] = ""; static uint8_t objStorage[sizeof(AdafruitIO_WiFi)]; // RAM for the object AdafruitIO_WiFi *io; // a pointer to the object, once it's constructed +// create WiFiManager object and define our custom parameters + WiFiManager wifiManager; WiFiManagerParameter custom_IO_USERNAME("iouser", "Adafruit IO Username", IO_USERNAME, 60); WiFiManagerParameter custom_IO_KEY("iokey", "Adafruit IO Key", IO_KEY, 60); @@ -131,10 +138,9 @@ void setup() Serial.begin(115200); // Initialize serial port for debugging. delay(500); - readParamsFromFS(); // get parameters fro file system + readParamsFromFS(); // get parameters fro file system // wifiManager.resetSettings(); //uncomment to reset the WiFi settings - // LittleFS.format(); // uncomment to format file system wifiManager.setClass("invert"); // enable "dark mode" for the config portal wifiManager.setConfigPortalTimeout(120); // auto close configportal after n seconds @@ -143,8 +149,8 @@ void setup() wifiManager.addParameter(&custom_IO_USERNAME); // set custom paraeter for IO username wifiManager.addParameter(&custom_IO_KEY); // set custom parameter for IO key - custom_IO_KEY.setValue(IO_KEY, 64); // set custom parameter value - custom_IO_USERNAME.setValue(IO_USERNAME, 64); // set custom parameter value + custom_IO_KEY.setValue(IO_KEY, 64); // set custom parameter value + custom_IO_USERNAME.setValue(IO_USERNAME, 64); // set custom parameter value wifiManager.setSaveConfigCallback(saveConfigCallback); // set config save notify callback From a00c8b20a4f3a0d6d99eab8068e902ea8b6f3b61 Mon Sep 17 00:00:00 2001 From: bradrblack Date: Sat, 20 Aug 2022 08:09:21 -0400 Subject: [PATCH 06/18] Minor fixes - typos - removed unused code --- ...afruitio_28_wifimanager-custom-aio-parameters.ino | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/examples/adafruitio_28_wifimanager-custom-aio-parameters/adafruitio_28_wifimanager-custom-aio-parameters.ino b/examples/adafruitio_28_wifimanager-custom-aio-parameters/adafruitio_28_wifimanager-custom-aio-parameters.ino index 5b64892..96de894 100644 --- a/examples/adafruitio_28_wifimanager-custom-aio-parameters/adafruitio_28_wifimanager-custom-aio-parameters.ino +++ b/examples/adafruitio_28_wifimanager-custom-aio-parameters/adafruitio_28_wifimanager-custom-aio-parameters.ino @@ -34,15 +34,9 @@ #include #include -#ifdef ESP32 -//#define LittleFS LITTLEFS -#endif - char IO_USERNAME[64] = ""; char IO_KEY[64] = ""; -// AdafruitIO_Feed *myfeed = io.feed("myfeed"); - static uint8_t objStorage[sizeof(AdafruitIO_WiFi)]; // RAM for the object AdafruitIO_WiFi *io; // a pointer to the object, once it's constructed @@ -137,10 +131,12 @@ void setup() { Serial.begin(115200); // Initialize serial port for debugging. delay(500); + WiFi.begin(); + WiFi.setTxPower(WIFI_POWER_8_5dBm); - readParamsFromFS(); // get parameters fro file system + readParamsFromFS(); // get parameters from file system - // wifiManager.resetSettings(); //uncomment to reset the WiFi settings + //wifiManager.resetSettings(); //uncomment to reset the WiFi settings wifiManager.setClass("invert"); // enable "dark mode" for the config portal wifiManager.setConfigPortalTimeout(120); // auto close configportal after n seconds From fbe050e179c9844511ab4789284fa0bb42a0cec9 Mon Sep 17 00:00:00 2001 From: bradrblack Date: Mon, 22 Aug 2022 13:14:31 -0400 Subject: [PATCH 07/18] add CI skip files and updated library.properties --- examples/adafruitio_27_wifimanager/metro_m4_airlist.test.skip | 0 examples/adafruitio_27_wifimanager/pyportal.test.skip | 0 .../metro_m4_airlist.test.skip | 0 .../pyportal.test.skip | 0 library.properties | 2 +- 5 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 examples/adafruitio_27_wifimanager/metro_m4_airlist.test.skip create mode 100644 examples/adafruitio_27_wifimanager/pyportal.test.skip create mode 100644 examples/adafruitio_28_wifimanager-custom-aio-parameters/metro_m4_airlist.test.skip create mode 100644 examples/adafruitio_28_wifimanager-custom-aio-parameters/pyportal.test.skip diff --git a/examples/adafruitio_27_wifimanager/metro_m4_airlist.test.skip b/examples/adafruitio_27_wifimanager/metro_m4_airlist.test.skip new file mode 100644 index 0000000..e69de29 diff --git a/examples/adafruitio_27_wifimanager/pyportal.test.skip b/examples/adafruitio_27_wifimanager/pyportal.test.skip new file mode 100644 index 0000000..e69de29 diff --git a/examples/adafruitio_28_wifimanager-custom-aio-parameters/metro_m4_airlist.test.skip b/examples/adafruitio_28_wifimanager-custom-aio-parameters/metro_m4_airlist.test.skip new file mode 100644 index 0000000..e69de29 diff --git a/examples/adafruitio_28_wifimanager-custom-aio-parameters/pyportal.test.skip b/examples/adafruitio_28_wifimanager-custom-aio-parameters/pyportal.test.skip new file mode 100644 index 0000000..e69de29 diff --git a/library.properties b/library.properties index c47fd80..c9aace6 100644 --- a/library.properties +++ b/library.properties @@ -7,4 +7,4 @@ paragraph=Arduino library to access Adafruit IO using the Adafruit AirLift, ESP8 category=Communication url=https://github.com/adafruit/Adafruit_IO_Arduino architectures=* -depends=Adafruit MQTT Library, ArduinoHttpClient, Adafruit Unified Sensor, Adafruit NeoPixel, DHT sensor library, Ethernet, Adafruit Si7021 Library, Adafruit SGP30 Sensor, Adafruit BME280 Library, Adafruit LIS3DH, Adafruit VEML6070 Library, ESP32Servo +depends=Adafruit MQTT Library, ArduinoHttpClient, Adafruit Unified Sensor, Adafruit NeoPixel, DHT sensor library, Ethernet, Adafruit Si7021 Library, Adafruit SGP30 Sensor, Adafruit BME280 Library, Adafruit LIS3DH, Adafruit VEML6070 Library, ESP32Servo, WiFiManager From fe5050c6db9caa0e77cfbec96da27fc6aad11c5f Mon Sep 17 00:00:00 2001 From: bradrblack Date: Mon, 22 Aug 2022 13:25:07 -0400 Subject: [PATCH 08/18] fixed wrong skip filenames --- examples/adafruitio_27_wifimanager/metro_m4_airliftlite.test.skip | 0 .../metro_m4_airliftlite.test.skip | 0 2 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 examples/adafruitio_27_wifimanager/metro_m4_airliftlite.test.skip create mode 100644 examples/adafruitio_28_wifimanager-custom-aio-parameters/metro_m4_airliftlite.test.skip diff --git a/examples/adafruitio_27_wifimanager/metro_m4_airliftlite.test.skip b/examples/adafruitio_27_wifimanager/metro_m4_airliftlite.test.skip new file mode 100644 index 0000000..e69de29 diff --git a/examples/adafruitio_28_wifimanager-custom-aio-parameters/metro_m4_airliftlite.test.skip b/examples/adafruitio_28_wifimanager-custom-aio-parameters/metro_m4_airliftlite.test.skip new file mode 100644 index 0000000..e69de29 From 790534521b8a7a6c61aec393238d6cc96129997d Mon Sep 17 00:00:00 2001 From: bradrblack <66791904+bradrblack@users.noreply.github.com> Date: Mon, 22 Aug 2022 13:26:28 -0400 Subject: [PATCH 09/18] Delete metro_m4_airlist.test.skip --- examples/adafruitio_27_wifimanager/metro_m4_airlist.test.skip | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 examples/adafruitio_27_wifimanager/metro_m4_airlist.test.skip diff --git a/examples/adafruitio_27_wifimanager/metro_m4_airlist.test.skip b/examples/adafruitio_27_wifimanager/metro_m4_airlist.test.skip deleted file mode 100644 index e69de29..0000000 From 3cfe5b96c19207a1bdb2be5b7acbeaf60baefb1b Mon Sep 17 00:00:00 2001 From: bradrblack <66791904+bradrblack@users.noreply.github.com> Date: Mon, 22 Aug 2022 13:26:47 -0400 Subject: [PATCH 10/18] Delete metro_m4_airlist.test.skip --- .../metro_m4_airlist.test.skip | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 examples/adafruitio_28_wifimanager-custom-aio-parameters/metro_m4_airlist.test.skip diff --git a/examples/adafruitio_28_wifimanager-custom-aio-parameters/metro_m4_airlist.test.skip b/examples/adafruitio_28_wifimanager-custom-aio-parameters/metro_m4_airlist.test.skip deleted file mode 100644 index e69de29..0000000 From 98e4941945a5f3c3a77e8dcfbbdc8ac3045d5421 Mon Sep 17 00:00:00 2001 From: bradrblack <66791904+bradrblack@users.noreply.github.com> Date: Mon, 22 Aug 2022 15:45:51 -0400 Subject: [PATCH 11/18] Rename pyportal.test.skip to .pyportal.test.skip --- examples/adafruitio_27_wifimanager/.pyportal.test.skip | 1 + examples/adafruitio_27_wifimanager/pyportal.test.skip | 0 2 files changed, 1 insertion(+) create mode 100644 examples/adafruitio_27_wifimanager/.pyportal.test.skip delete mode 100644 examples/adafruitio_27_wifimanager/pyportal.test.skip diff --git a/examples/adafruitio_27_wifimanager/.pyportal.test.skip b/examples/adafruitio_27_wifimanager/.pyportal.test.skip new file mode 100644 index 0000000..d3f5a12 --- /dev/null +++ b/examples/adafruitio_27_wifimanager/.pyportal.test.skip @@ -0,0 +1 @@ + diff --git a/examples/adafruitio_27_wifimanager/pyportal.test.skip b/examples/adafruitio_27_wifimanager/pyportal.test.skip deleted file mode 100644 index e69de29..0000000 From ccf9875bf279b07fdc2e9bf722c692bce07397c3 Mon Sep 17 00:00:00 2001 From: bradrblack <66791904+bradrblack@users.noreply.github.com> Date: Mon, 22 Aug 2022 15:46:25 -0400 Subject: [PATCH 12/18] Rename metro_m4_airliftlite.test.skip to .metro_m4_airliftlite.test.skip --- .../.metro_m4_airliftlite.test.skip | 1 + .../metro_m4_airliftlite.test.skip | 0 2 files changed, 1 insertion(+) create mode 100644 examples/adafruitio_28_wifimanager-custom-aio-parameters/.metro_m4_airliftlite.test.skip delete mode 100644 examples/adafruitio_28_wifimanager-custom-aio-parameters/metro_m4_airliftlite.test.skip diff --git a/examples/adafruitio_28_wifimanager-custom-aio-parameters/.metro_m4_airliftlite.test.skip b/examples/adafruitio_28_wifimanager-custom-aio-parameters/.metro_m4_airliftlite.test.skip new file mode 100644 index 0000000..d3f5a12 --- /dev/null +++ b/examples/adafruitio_28_wifimanager-custom-aio-parameters/.metro_m4_airliftlite.test.skip @@ -0,0 +1 @@ + diff --git a/examples/adafruitio_28_wifimanager-custom-aio-parameters/metro_m4_airliftlite.test.skip b/examples/adafruitio_28_wifimanager-custom-aio-parameters/metro_m4_airliftlite.test.skip deleted file mode 100644 index e69de29..0000000 From a47e7b9f24eee0a6cd3955fc13866cf03f58e288 Mon Sep 17 00:00:00 2001 From: bradrblack <66791904+bradrblack@users.noreply.github.com> Date: Mon, 22 Aug 2022 15:46:44 -0400 Subject: [PATCH 13/18] Rename metro_m4_airliftlite.test.skip to .metro_m4_airliftlite.test.skip --- .../adafruitio_27_wifimanager/.metro_m4_airliftlite.test.skip | 1 + .../adafruitio_27_wifimanager/metro_m4_airliftlite.test.skip | 0 2 files changed, 1 insertion(+) create mode 100644 examples/adafruitio_27_wifimanager/.metro_m4_airliftlite.test.skip delete mode 100644 examples/adafruitio_27_wifimanager/metro_m4_airliftlite.test.skip diff --git a/examples/adafruitio_27_wifimanager/.metro_m4_airliftlite.test.skip b/examples/adafruitio_27_wifimanager/.metro_m4_airliftlite.test.skip new file mode 100644 index 0000000..d3f5a12 --- /dev/null +++ b/examples/adafruitio_27_wifimanager/.metro_m4_airliftlite.test.skip @@ -0,0 +1 @@ + diff --git a/examples/adafruitio_27_wifimanager/metro_m4_airliftlite.test.skip b/examples/adafruitio_27_wifimanager/metro_m4_airliftlite.test.skip deleted file mode 100644 index e69de29..0000000 From 963c452aded58883a78da851c98bcd00fe29830c Mon Sep 17 00:00:00 2001 From: bradrblack <66791904+bradrblack@users.noreply.github.com> Date: Mon, 22 Aug 2022 15:47:10 -0400 Subject: [PATCH 14/18] Rename pyportal.test.skip to .pyportal.test.skip --- .../.pyportal.test.skip | 1 + .../pyportal.test.skip | 0 2 files changed, 1 insertion(+) create mode 100644 examples/adafruitio_28_wifimanager-custom-aio-parameters/.pyportal.test.skip delete mode 100644 examples/adafruitio_28_wifimanager-custom-aio-parameters/pyportal.test.skip diff --git a/examples/adafruitio_28_wifimanager-custom-aio-parameters/.pyportal.test.skip b/examples/adafruitio_28_wifimanager-custom-aio-parameters/.pyportal.test.skip new file mode 100644 index 0000000..d3f5a12 --- /dev/null +++ b/examples/adafruitio_28_wifimanager-custom-aio-parameters/.pyportal.test.skip @@ -0,0 +1 @@ + diff --git a/examples/adafruitio_28_wifimanager-custom-aio-parameters/pyportal.test.skip b/examples/adafruitio_28_wifimanager-custom-aio-parameters/pyportal.test.skip deleted file mode 100644 index e69de29..0000000 From 4ac3fde1451ba77495c0cdc908301a6b6585db41 Mon Sep 17 00:00:00 2001 From: bradrblack Date: Mon, 22 Aug 2022 17:20:15 -0400 Subject: [PATCH 15/18] updated library.properties with ArduinoJson and LittleFS --- library.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library.properties b/library.properties index c9aace6..5a990a0 100644 --- a/library.properties +++ b/library.properties @@ -7,4 +7,4 @@ paragraph=Arduino library to access Adafruit IO using the Adafruit AirLift, ESP8 category=Communication url=https://github.com/adafruit/Adafruit_IO_Arduino architectures=* -depends=Adafruit MQTT Library, ArduinoHttpClient, Adafruit Unified Sensor, Adafruit NeoPixel, DHT sensor library, Ethernet, Adafruit Si7021 Library, Adafruit SGP30 Sensor, Adafruit BME280 Library, Adafruit LIS3DH, Adafruit VEML6070 Library, ESP32Servo, WiFiManager +depends=Adafruit MQTT Library, ArduinoHttpClient, Adafruit Unified Sensor, Adafruit NeoPixel, DHT sensor library, Ethernet, Adafruit Si7021 Library, Adafruit SGP30 Sensor, Adafruit BME280 Library, Adafruit LIS3DH, Adafruit VEML6070 Library, ESP32Servo, WiFiManager, ArduinoJson, LittleFS From 36f3437eb8552b047e69f1223c47cee100445c75 Mon Sep 17 00:00:00 2001 From: bradrblack Date: Mon, 22 Aug 2022 19:25:19 -0400 Subject: [PATCH 16/18] updated library.properties - removed LittleFS --- library.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library.properties b/library.properties index 5a990a0..3f50406 100644 --- a/library.properties +++ b/library.properties @@ -7,4 +7,4 @@ paragraph=Arduino library to access Adafruit IO using the Adafruit AirLift, ESP8 category=Communication url=https://github.com/adafruit/Adafruit_IO_Arduino architectures=* -depends=Adafruit MQTT Library, ArduinoHttpClient, Adafruit Unified Sensor, Adafruit NeoPixel, DHT sensor library, Ethernet, Adafruit Si7021 Library, Adafruit SGP30 Sensor, Adafruit BME280 Library, Adafruit LIS3DH, Adafruit VEML6070 Library, ESP32Servo, WiFiManager, ArduinoJson, LittleFS +depends=Adafruit MQTT Library, ArduinoHttpClient, Adafruit Unified Sensor, Adafruit NeoPixel, DHT sensor library, Ethernet, Adafruit Si7021 Library, Adafruit SGP30 Sensor, Adafruit BME280 Library, Adafruit LIS3DH, Adafruit VEML6070 Library, ESP32Servo, WiFiManager, ArduinoJson From 4240f3c2d965f5e0b76dc12cdeca2cb199c89b62 Mon Sep 17 00:00:00 2001 From: bradrblack Date: Mon, 22 Aug 2022 19:54:40 -0400 Subject: [PATCH 17/18] removed wifi power cmd --- .../adafruitio_28_wifimanager-custom-aio-parameters.ino | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/adafruitio_28_wifimanager-custom-aio-parameters/adafruitio_28_wifimanager-custom-aio-parameters.ino b/examples/adafruitio_28_wifimanager-custom-aio-parameters/adafruitio_28_wifimanager-custom-aio-parameters.ino index 96de894..678786c 100644 --- a/examples/adafruitio_28_wifimanager-custom-aio-parameters/adafruitio_28_wifimanager-custom-aio-parameters.ino +++ b/examples/adafruitio_28_wifimanager-custom-aio-parameters/adafruitio_28_wifimanager-custom-aio-parameters.ino @@ -132,7 +132,6 @@ void setup() Serial.begin(115200); // Initialize serial port for debugging. delay(500); WiFi.begin(); - WiFi.setTxPower(WIFI_POWER_8_5dBm); readParamsFromFS(); // get parameters from file system From 5b33739f12338ec252a5f3aa610bdfc453284ee7 Mon Sep 17 00:00:00 2001 From: bradrblack Date: Tue, 30 Aug 2022 14:35:29 -0400 Subject: [PATCH 18/18] updated library properties with 4.2.3 version --- library.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library.properties b/library.properties index 3f50406..eceaca5 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=Adafruit IO Arduino -version=4.2.2 +version=4.2.3 author=Adafruit maintainer=Adafruit sentence=Arduino library to access Adafruit IO.