From a00c8b20a4f3a0d6d99eab8068e902ea8b6f3b61 Mon Sep 17 00:00:00 2001 From: bradrblack Date: Sat, 20 Aug 2022 08:09:21 -0400 Subject: [PATCH] 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