140
140
* [ 9.3 Normal running with correct local time, TZ set and using NTP] ( #93-normal-running-with-correct-local-time-tz-set-and-using-ntp )
141
141
* [ 10. Async_ConfigOnDoubleReset_TZ on ESP32C3_DEV using SPIFFS] ( #10-async_configondoublereset_tz-on-esp32c3_dev-using-spiffs )
142
142
* [ 11. Async_ConfigOnDoubleReset on ESP32S3_DEV using LittleFS] ( #11-Async_ConfigOnDoubleReset-on-ESP32S3_DEV-using-LittleFS ) ** New**
143
+ * [ 12. Async_ConfigOnDoubleReset on ESP32C3_DEV using LittleFS] ( #12-Async_ConfigOnDoubleReset-on-ESP32C3_DEV-using-LittleFS ) ** New**
143
144
* [ Debug] ( #debug )
144
145
* [ Troubleshooting] ( #troubleshooting )
145
146
* [ Issues] ( #issues )
@@ -255,7 +256,7 @@ This [**ESPAsync_WiFiManager** library](https://github.com/khoih-prog/ESPAsync_W
255
256
256
257
1 . ** ESP8266 and ESP32-based boards using EEPROM, SPIFFS or LittleFS** .
257
258
2 . ** ESP32-S2 (ESP32-S2 Saola, AI-Thinker ESP-12K, etc.) using EEPROM, SPIFFS or LittleFS** .
258
- 3 . ** ESP32-C3 (ARDUINO_ESP32C3_DEV) using EEPROM or SPIFFS ** .
259
+ 3 . ** ESP32-C3 (ARDUINO_ESP32C3_DEV) using EEPROM, SPIFFS or LittleFS ** .
259
260
4 . ** ESP32-S3 (ESP32S3_DEV, ESP32_S3_BOX, UM TINYS3, UM PROS3, UM FEATHERS3, etc.) using EEPROM, SPIFFS or LittleFS** .
260
261
261
262
---
@@ -440,8 +441,14 @@ then connect WebBrowser to configurable ConfigPortal IP address, default is 192.
440
441
WiFiMulti wifiMulti;
441
442
442
443
// LittleFS has higher priority than SPIFFS
443
- #define USE_LITTLEFS true
444
- #define USE_SPIFFS false
444
+ #if ( defined(ESP_ARDUINO_VERSION_MAJOR) && (ESP_ARDUINO_VERSION_MAJOR >= 2) )
445
+ #define USE_LITTLEFS true
446
+ #define USE_SPIFFS false
447
+ #elif defined(ARDUINO_ESP32C3_DEV)
448
+ // For core v1.0.6-, ESP32-C3 only supporting SPIFFS and EEPROM. To use v2.0.0+ for LittleFS
449
+ #define USE_LITTLEFS false
450
+ #define USE_SPIFFS true
451
+ #endif
445
452
446
453
#if USE_LITTLEFS
447
454
// Use LittleFS
@@ -452,15 +459,15 @@ then connect WebBrowser to configurable ConfigPortal IP address, default is 192.
452
459
#if ( defined(ESP_ARDUINO_VERSION_MAJOR) && (ESP_ARDUINO_VERSION_MAJOR >= 2) )
453
460
#warning Using ESP32 Core 1.0.6 or 2.0.0+
454
461
// The library has been merged into esp32 core from release 1.0.6
455
- #include <LittleFS.h>
462
+ #include <LittleFS.h> // https://github.com/espressif/arduino-esp32/tree/master/libraries/LittleFS
456
463
457
464
FS* filesystem = &LittleFS;
458
465
#define FileFS LittleFS
459
466
#define FS_Name "LittleFS"
460
467
#else
461
468
#warning Using ESP32 Core 1.0.5-. You must install LITTLEFS library
462
469
// The library has been merged into esp32 core from release 1.0.6
463
- #include <LITTLEFS.h> // https://github.com/lorol/LITTLEFS
470
+ #include <LITTLEFS.h> // https://github.com/lorol/LITTLEFS
464
471
465
472
FS* filesystem = &LITTLEFS;
466
473
#define FileFS LITTLEFS
@@ -582,8 +589,14 @@ WM_Config WM_config;
582
589
WiFiMulti wifiMulti;
583
590
584
591
// LittleFS has higher priority than SPIFFS
585
- #define USE_LITTLEFS true
586
- #define USE_SPIFFS false
592
+ #if ( defined(ESP_ARDUINO_VERSION_MAJOR) && (ESP_ARDUINO_VERSION_MAJOR >= 2) )
593
+ #define USE_LITTLEFS true
594
+ #define USE_SPIFFS false
595
+ #elif defined(ARDUINO_ESP32C3_DEV)
596
+ // For core v1.0.6-, ESP32-C3 only supporting SPIFFS and EEPROM. To use v2.0.0+ for LittleFS
597
+ #define USE_LITTLEFS false
598
+ #define USE_SPIFFS true
599
+ #endif
587
600
588
601
#if USE_LITTLEFS
589
602
// Use LittleFS
@@ -594,15 +607,15 @@ WM_Config WM_config;
594
607
#if ( defined(ESP_ARDUINO_VERSION_MAJOR) && (ESP_ARDUINO_VERSION_MAJOR >= 2) )
595
608
#warning Using ESP32 Core 1.0.6 or 2.0.0+
596
609
// The library has been merged into esp32 core from release 1.0.6
597
- #include <LittleFS.h>
610
+ #include <LittleFS.h> // https://github.com/espressif/arduino-esp32/tree/master/libraries/LittleFS
598
611
599
612
FS* filesystem = &LittleFS;
600
613
#define FileFS LittleFS
601
614
#define FS_Name "LittleFS"
602
615
#else
603
616
#warning Using ESP32 Core 1.0.5-. You must install LITTLEFS library
604
617
// The library has been merged into esp32 core from release 1.0.6
605
- #include <LITTLEFS.h> // https://github.com/lorol/LITTLEFS
618
+ #include <LITTLEFS.h> // https://github.com/lorol/LITTLEFS
606
619
607
620
FS* filesystem = &LITTLEFS;
608
621
#define FileFS LITTLEFS
@@ -2182,7 +2195,7 @@ ESPAsync_wifiManager.setRemoveDuplicateAPs(false);
2182
2195
#error This code is intended to run on the ESP8266 or ESP32 platform! Please check your Tools->Board setting.
2183
2196
#endif
2184
2197
2185
- #define ESP_ASYNC_WIFIMANAGER_VERSION_MIN_TARGET "ESPAsync_WiFiManager v1.12.0 "
2198
+ #define ESP_ASYNC_WIFIMANAGER_VERSION_MIN_TARGET "ESPAsync_WiFiManager v1.12.1 "
2186
2199
#define ESP_ASYNC_WIFIMANAGER_VERSION_MIN 1012000
2187
2200
2188
2201
// Use from 0 to 4. Higher number, more debugging messages and memory usage.
@@ -2205,13 +2218,13 @@ ESPAsync_wifiManager.setRemoveDuplicateAPs(false);
2205
2218
WiFiMulti wifiMulti;
2206
2219
2207
2220
// LittleFS has higher priority than SPIFFS
2208
- #if ( ARDUINO_ESP32C3_DEV )
2209
- // Currently, ESP32-C3 only supporting SPIFFS and EEPROM. Will fix to support LittleFS
2210
- #define USE_LITTLEFS false
2211
- #define USE_SPIFFS true
2212
- #else
2221
+ #if ( defined(ESP_ARDUINO_VERSION_MAJOR) && (ESP_ARDUINO_VERSION_MAJOR >= 2) )
2213
2222
#define USE_LITTLEFS true
2214
2223
#define USE_SPIFFS false
2224
+ #elif defined(ARDUINO_ESP32C3_DEV)
2225
+ // For core v1.0.6-, ESP32-C3 only supporting SPIFFS and EEPROM. To use v2.0.0+ for LittleFS
2226
+ #define USE_LITTLEFS false
2227
+ #define USE_SPIFFS true
2215
2228
#endif
2216
2229
2217
2230
#if USE_LITTLEFS
@@ -2223,15 +2236,15 @@ ESPAsync_wifiManager.setRemoveDuplicateAPs(false);
2223
2236
#if ( defined(ESP_ARDUINO_VERSION_MAJOR) && (ESP_ARDUINO_VERSION_MAJOR >= 2) )
2224
2237
#warning Using ESP32 Core 1.0.6 or 2.0.0+
2225
2238
// The library has been merged into esp32 core from release 1.0.6
2226
- #include <LittleFS.h>
2239
+ #include <LittleFS.h> // https://github.com/espressif/arduino-esp32/tree/master/libraries/LittleFS
2227
2240
2228
2241
FS* filesystem = &LittleFS;
2229
2242
#define FileFS LittleFS
2230
2243
#define FS_Name "LittleFS"
2231
2244
#else
2232
2245
#warning Using ESP32 Core 1.0.5-. You must install LITTLEFS library
2233
2246
// The library has been merged into esp32 core from release 1.0.6
2234
- #include <LITTLEFS.h> // https://github.com/lorol/LITTLEFS
2247
+ #include <LITTLEFS.h> // https://github.com/lorol/LITTLEFS
2235
2248
2236
2249
FS* filesystem = &LITTLEFS;
2237
2250
#define FileFS LITTLEFS
@@ -3554,7 +3567,7 @@ This is terminal debug output when running [Async_ConfigOnDRD_FS_MQTT_Ptr_Medium
3554
3567
3555
3568
```
3556
3569
Starting Async_ConfigOnDRD_FS_MQTT_Ptr_Medium using LittleFS on ESP32_DEV
3557
- ESPAsync_WiFiManager v1.12.0
3570
+ ESPAsync_WiFiManager v1.12.1
3558
3571
ESP_DoubleResetDetector v1.3.0
3559
3572
Config File not found
3560
3573
Can't read Config File, using default values
@@ -3573,7 +3586,7 @@ Opening Configuration Portal. No timeout : DRD or No stored Credentials..
3573
3586
3574
3587
```
3575
3588
Starting Async_ConfigOnDRD_FS_MQTT_Ptr_Medium using LittleFS on ESP32_DEV
3576
- ESPAsync_WiFiManager v1.12.0
3589
+ ESPAsync_WiFiManager v1.12.1
3577
3590
ESP_DoubleResetDetector v1.3.0
3578
3591
Config File not found
3579
3592
Can't read Config File, using default values
@@ -3661,7 +3674,7 @@ This is terminal debug output when running [Async_ConfigOnDRD_FS_MQTT_Ptr_Comple
3661
3674
3662
3675
```
3663
3676
Starting Async_ConfigOnDRD_FS_MQTT_Ptr_Complex using LittleFS on ESP8266_NODEMCU_ESP12E
3664
- ESPAsync_WiFiManager v1.12.0
3677
+ ESPAsync_WiFiManager v1.12.1
3665
3678
ESP_DoubleResetDetector v1.3.0
3666
3679
{"AIO_SERVER_Label":"io.adafruit.com","AIO_SERVERPORT_Label":"1883","AIO_USERNAME_Label":"user_name","AIO_KEY_Label":"aio_key"}
3667
3680
Config File successfully parsed
@@ -3701,7 +3714,7 @@ TWWWW WTWWW
3701
3714
3702
3715
```
3703
3716
Starting Async_ConfigOnDRD_FS_MQTT_Ptr_Complex using LittleFS on ESP8266_NODEMCU_ESP12E
3704
- ESPAsync_WiFiManager v1.12.0
3717
+ ESPAsync_WiFiManager v1.12.1
3705
3718
ESP_DoubleResetDetector v1.3.0
3706
3719
{"AIO_SERVER_Label":"io.adafruit.com","AIO_SERVERPORT_Label":"1883","AIO_USERNAME_Label":"user_name","AIO_KEY_Label":"aio_key"}
3707
3720
Config File successfully parsed
@@ -3791,7 +3804,7 @@ This is terminal debug output when running [Async_ConfigOnDoubleReset](examples/
3791
3804
3792
3805
```cpp
3793
3806
Starting Async_ConfigOnDoubleReset with DoubleResetDetect using SPIFFS on ESP32_DEV
3794
- ESPAsync_WiFiManager v1.12.0
3807
+ ESPAsync_WiFiManager v1.12.1
3795
3808
ESP_DoubleResetDetector v1.3.0
3796
3809
[WM] RFC925 Hostname = ConfigOnDoubleReset
3797
3810
[WM] setSTAStaticIPConfig for USE_CONFIGURABLE_DNS
@@ -3850,7 +3863,7 @@ This is terminal debug output when running [Async_ConfigOnDoubleReset](examples/
3850
3863
3851
3864
``` cpp
3852
3865
Starting Async_ConfigOnDoubleReset with DoubleResetDetect using LittleFS on ESP8266_NODEMCU_ESP12E
3853
- ESPAsync_WiFiManager v1.12.0
3866
+ ESPAsync_WiFiManager v1.12.1
3854
3867
ESP_DoubleResetDetector v1.3.0
3855
3868
[WM] RFC925 Hostname = ConfigOnDoubleReset
3856
3869
[WM] setSTAStaticIPConfig for USE_CONFIGURABLE_DNS
@@ -3910,7 +3923,7 @@ This is terminal debug output when running [Async_ESP_FSWebServer_DRD](examples/
3910
3923
3911
3924
```cpp
3912
3925
Starting Async_ESP_FSWebServer_DRD using LittleFS on ESP8266_NODEMCU_ESP12E
3913
- ESPAsync_WiFiManager v1.12.0
3926
+ ESPAsync_WiFiManager v1.12.1
3914
3927
ESP_DoubleResetDetector v1.3.0
3915
3928
Opening / directory
3916
3929
FS File: CanadaFlag_1.png, size: 40.25KB
@@ -3988,7 +4001,7 @@ This is terminal debug output when running [Async_ESP32_FSWebServer_DRD](example
3988
4001
3989
4002
```
3990
4003
Starting Async_ESP32_FSWebServer_DRD using LittleFS on ESP32_DEV
3991
- ESPAsync_WiFiManager v1.12.0
4004
+ ESPAsync_WiFiManager v1.12.1
3992
4005
ESP_DoubleResetDetector v1.3.0
3993
4006
FS File: /CanadaFlag_1.png, size: 40.25KB
3994
4007
FS File: /CanadaFlag_2.png, size: 8.12KB
@@ -4099,7 +4112,7 @@ This is terminal debug output when running [Async_ConfigOnDoubleReset](examples/
4099
4112
4100
4113
```
4101
4114
Starting Async_ConfigOnDoubleReset using LittleFS on ESP32S2_DEV
4102
- ESPAsync_WiFiManager v1.12.0
4115
+ ESPAsync_WiFiManager v1.12.1
4103
4116
ESP_DoubleResetDetector v1.3.0
4104
4117
ESP Self-Stored: SSID = HueNet1, Pass = 12345678
4105
4118
[WM] * Add SSID = HueNet1 , PW = 12345678
@@ -4136,7 +4149,7 @@ This is terminal debug output when running [Async_ConfigOnDoubleReset_TZ](exampl
4136
4149
4137
4150
```
4138
4151
Starting Async_ConfigOnDoubleReset_TZ using LittleFS on ESP32_DEV
4139
- ESPAsync_WiFiManager v1.12.0
4152
+ ESPAsync_WiFiManager v1.12.1
4140
4153
ESP_DoubleResetDetector v1.3.0
4141
4154
ESP Self-Stored: SSID = HueNet1, Pass = password
4142
4155
[WM] * Add SSID = HueNet1 , PW = password
@@ -4178,7 +4191,7 @@ Local Date/Time: Thu Feb 10 23:50:26 2022
4178
4191
4179
4192
```
4180
4193
Starting Async_ConfigOnDoubleReset_TZ using LittleFS on ESP32_DEV
4181
- ESPAsync_WiFiManager v1.12.0
4194
+ ESPAsync_WiFiManager v1.12.1
4182
4195
ESP_DoubleResetDetector v1.3.0
4183
4196
ESP Self-Stored: SSID = HueNet1, Pass = password
4184
4197
[WM] * Add SSID = HueNet1 , PW = password
@@ -4227,7 +4240,7 @@ This is terminal debug output when running [Async_ESP_FSWebServer_DRD](examples/
4227
4240
4228
4241
```
4229
4242
Starting Async_ESP_FSWebServer_DRD using LittleFS on ESP8266_NODEMCU_ESP12E
4230
- ESPAsync_WiFiManager v1.12.0
4243
+ ESPAsync_WiFiManager v1.12.1
4231
4244
ESP_DoubleResetDetector v1.3.0
4232
4245
Opening / directory
4233
4246
FS File: drd.dat, size: 4B
@@ -4300,7 +4313,7 @@ Local Date/Time: Thu Feb 10 23:16:26 2022
4300
4313
4301
4314
```
4302
4315
Starting Async_ESP_FSWebServer_DRD using LittleFS on ESP8266_NODEMCU_ESP12E
4303
- ESPAsync_WiFiManager v1.12.0
4316
+ ESPAsync_WiFiManager v1.12.1
4304
4317
ESP_DoubleResetDetector v1.3.0
4305
4318
Opening / directory
4306
4319
FS File: drd.dat, size: 4B
@@ -4359,7 +4372,7 @@ This is terminal debug output when running [Async_ConfigOnDoubleReset_TZ](exampl
4359
4372
4360
4373
```
4361
4374
Starting Async_ConfigOnDoubleReset_TZ using SPIFFS on ESP32C3_DEV
4362
- ESPAsync_WiFiManager v1.12.0
4375
+ ESPAsync_WiFiManager v1.12.1
4363
4376
ESP_DoubleResetDetector v1.3.0
4364
4377
ESP Self-Stored: SSID = HueNet1, Pass = 12345678
4365
4378
[WM] * Add SSID = HueNet1 , PW = 12345678
@@ -4405,7 +4418,7 @@ This is terminal debug output when running [Async_ConfigOnDoubleReset](examples/
4405
4418
4406
4419
```
4407
4420
Starting Async_ConfigOnDoubleReset using LittleFS on ESP32S3_DEV
4408
- ESPAsync_WiFiManager v1.12.0
4421
+ ESPAsync_WiFiManager v1.12.1
4409
4422
ESP_DoubleResetDetector v1.3.0
4410
4423
ESP Self-Stored: SSID = HueNet1, Pass = password
4411
4424
[WM] * Add SSID = HueNet1 , PW = password
@@ -4440,6 +4453,48 @@ HHHHHHHHH HHHHHHHHHH HHHHHHHHHH HHHHHHHHHH HHHHHHHHHH HHHHHHHHHH HHHHHHHHHH HHHH
4440
4453
HHHHHHHHHH HHHHHHHHHH HHH
4441
4454
```
4442
4455
4456
+ ---
4457
+
4458
+ #### 12. [ Async_ConfigOnDoubleReset] ( examples/Async_ConfigOnDoubleReset ) on ESP32C3_DEV using LittleFS
4459
+
4460
+ This is terminal debug output when running [ Async_ConfigOnDoubleReset] ( examples/Async_ConfigOnDoubleReset ) on ** ESP32C3_DEV using LittleFS and ESP32 core v2.0.2** .
4461
+
4462
+ ```
4463
+ Starting Async_ConfigOnDoubleReset using LittleFS on ESP32C3_DEV
4464
+ ESPAsync_WiFiManager v1.12.1
4465
+ ESP_DoubleResetDetector v1.3.0
4466
+ ESP Self-Stored: SSID = HueNet1, Pass = password
4467
+ [WM] * Add SSID = HueNet1 , PW = password
4468
+ Got ESP Self-Stored Credentials. Timeout 120s for Config Portal
4469
+ [WM] LoadWiFiCfgFile
4470
+ [WM] OK
4471
+ [WM] stationIP = 0.0.0.0 , gatewayIP = 192.168.2.1
4472
+ [WM] netMask = 255.255.255.0
4473
+ [WM] dns1IP = 192.168.2.1 , dns2IP = 8.8.8.8
4474
+ Got stored Credentials. Timeout 120s for Config Portal
4475
+ LittleFS Flag read = 0xD0D04321
4476
+ No doubleResetDetected
4477
+ Saving config file...
4478
+ Saving config file OK
4479
+ [WM] * Add SSID = HueNet1 , PW = password
4480
+ [WM] * Add SSID = HueNet2 , PW = password
4481
+ ConnectMultiWiFi in setup
4482
+ [WM] ConnectMultiWiFi with :
4483
+ [WM] * Flash-stored Router_SSID = HueNet1 , Router_Pass = password
4484
+ [WM] * Add SSID = HueNet1 , PW = password
4485
+ [WM] * Additional SSID = HueNet1 , PW = password
4486
+ [WM] * Additional SSID = HueNet2 , PW = password
4487
+ [WM] Connecting MultiWifi...
4488
+ [WM] WiFi connected after time: 1
4489
+ [WM] SSID: HueNet1 ,RSSI= -19
4490
+ [WM] Channel: 2 ,IP address: 192.168.2.85
4491
+ After waiting 8.41 secs more in setup(), connection result is connected. Local IP: 192.168.2.85
4492
+ HStop doubleResetDetecting
4493
+ Saving config file...
4494
+ Saving config file OK
4495
+ HHH
4496
+ ```
4497
+
4443
4498
---
4444
4499
---
4445
4500
0 commit comments