You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/adafruitio_28_wifimanager-custom-aio-parameters/adafruitio_28_wifimanager-custom-aio-parameters.ino
+4-8Lines changed: 4 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -34,15 +34,9 @@
34
34
#include<ArduinoJson.h>
35
35
#include<LittleFS.h>
36
36
37
-
#ifdef ESP32
38
-
//#define LittleFS LITTLEFS
39
-
#endif
40
-
41
37
char IO_USERNAME[64] = "";
42
38
char IO_KEY[64] = "";
43
39
44
-
// AdafruitIO_Feed *myfeed = io.feed("myfeed");
45
-
46
40
staticuint8_t objStorage[sizeof(AdafruitIO_WiFi)]; // RAM for the object
47
41
AdafruitIO_WiFi *io; // a pointer to the object, once it's constructed
48
42
@@ -137,10 +131,12 @@ void setup()
137
131
{
138
132
Serial.begin(115200); // Initialize serial port for debugging.
139
133
delay(500);
134
+
WiFi.begin();
135
+
WiFi.setTxPower(WIFI_POWER_8_5dBm);
140
136
141
-
readParamsFromFS(); // get parameters fro file system
137
+
readParamsFromFS(); // get parameters from file system
142
138
143
-
//wifiManager.resetSettings(); //uncomment to reset the WiFi settings
139
+
//wifiManager.resetSettings(); //uncomment to reset the WiFi settings
144
140
145
141
wifiManager.setClass("invert"); // enable "dark mode" for the config portal
146
142
wifiManager.setConfigPortalTimeout(120); // auto close configportal after n seconds
0 commit comments