Skip to content

Commit a00c8b2

Browse files
committed
Minor fixes - typos - removed unused code
1 parent f3ff8ea commit a00c8b2

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

examples/adafruitio_28_wifimanager-custom-aio-parameters/adafruitio_28_wifimanager-custom-aio-parameters.ino

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,9 @@
3434
#include <ArduinoJson.h>
3535
#include <LittleFS.h>
3636

37-
#ifdef ESP32
38-
//#define LittleFS LITTLEFS
39-
#endif
40-
4137
char IO_USERNAME[64] = "";
4238
char IO_KEY[64] = "";
4339

44-
// AdafruitIO_Feed *myfeed = io.feed("myfeed");
45-
4640
static uint8_t objStorage[sizeof(AdafruitIO_WiFi)]; // RAM for the object
4741
AdafruitIO_WiFi *io; // a pointer to the object, once it's constructed
4842

@@ -137,10 +131,12 @@ void setup()
137131
{
138132
Serial.begin(115200); // Initialize serial port for debugging.
139133
delay(500);
134+
WiFi.begin();
135+
WiFi.setTxPower(WIFI_POWER_8_5dBm);
140136

141-
readParamsFromFS(); // get parameters fro file system
137+
readParamsFromFS(); // get parameters from file system
142138

143-
// wifiManager.resetSettings(); //uncomment to reset the WiFi settings
139+
//wifiManager.resetSettings(); //uncomment to reset the WiFi settings
144140

145141
wifiManager.setClass("invert"); // enable "dark mode" for the config portal
146142
wifiManager.setConfigPortalTimeout(120); // auto close configportal after n seconds

0 commit comments

Comments
 (0)