145
145
* [ 8.3 Normal running with correct local time, TZ set and using NTP] ( #83-normal-running-with-correct-local-time-tz-set-and-using-ntp )
146
146
* [ 9. ESP32_FSWebServer_DRD on ESP32C3_DEV using SPIFFS] ( #9-esp32_fswebserver_drd-on-esp32c3_dev-using-spiffs )
147
147
* [ 10. ConfigOnDoubleReset on ESP32S3_DEV] ( #10-configondoublereset-on-esp32s3_dev )
148
+ * [ 11. ConfigOnDoubleReset using LittleFS on ESP32C3_DEV] ( #11-configondoublereset-using-LittleFS-on-ESP32C3_DEV )
148
149
* [ Debug] ( #debug )
149
150
* [ Troubleshooting] ( #troubleshooting )
150
151
* [ Issues] ( #issues )
@@ -269,7 +270,7 @@ This [**ESP_WiFiManager** library](https://github.com/khoih-prog/ESP_WiFiManager
269
270
270
271
1 . ** ESP8266 and ESP32-based boards using EEPROM, SPIFFS or LittleFS** .
271
272
2 . ** ESP32-S2 (ESP32-S2 Saola, AI-Thinker ESP-12K, etc.) using EEPROM, SPIFFS or LittleFS** .
272
- 3 . ** ESP32-C3 (ARDUINO_ESP32C3_DEV) using EEPROM or SPIFFS ** .
273
+ 3 . ** ESP32-C3 (ARDUINO_ESP32C3_DEV) using EEPROM, SPIFFS or LittleFS ** .
273
274
4 . ** ESP32-S3 (ESP32S3_DEV, ESP32_S3_BOX, UM TINYS3, UM PROS3, UM FEATHERS3, etc.) using EEPROM, SPIFFS or LittleFS** .
274
275
275
276
---
@@ -452,8 +453,14 @@ then connect WebBrowser to configurable ConfigPortal IP address, default is 192.
452
453
WiFiMulti wifiMulti;
453
454
454
455
// LittleFS has higher priority than SPIFFS
455
- #define USE_LITTLEFS true
456
- #define USE_SPIFFS false
456
+ #if ( defined(ESP_ARDUINO_VERSION_MAJOR) && (ESP_ARDUINO_VERSION_MAJOR >= 2) )
457
+ #define USE_LITTLEFS true
458
+ #define USE_SPIFFS false
459
+ #elif defined(ARDUINO_ESP32C3_DEV)
460
+ // For core v1.0.6-, ESP32-C3 only supporting SPIFFS and EEPROM. To use v2.0.0+ for LittleFS
461
+ #define USE_LITTLEFS false
462
+ #define USE_SPIFFS true
463
+ #endif
457
464
458
465
#if USE_LITTLEFS
459
466
// Use LittleFS
@@ -464,15 +471,15 @@ then connect WebBrowser to configurable ConfigPortal IP address, default is 192.
464
471
#if ( defined(ESP_ARDUINO_VERSION_MAJOR) && (ESP_ARDUINO_VERSION_MAJOR >= 2) )
465
472
#warning Using ESP32 Core 1.0.6 or 2.0.0+
466
473
// The library has been merged into esp32 core from release 1.0.6
467
- #include <LittleFS.h>
474
+ #include <LittleFS.h> // https://github.com/espressif/arduino-esp32/tree/master/libraries/LittleFS
468
475
469
476
FS* filesystem = &LittleFS;
470
477
#define FileFS LittleFS
471
478
#define FS_Name "LittleFS"
472
479
#else
473
480
#warning Using ESP32 Core 1.0.5-. You must install LITTLEFS library
474
481
// The library has been merged into esp32 core from release 1.0.6
475
- #include <LITTLEFS.h> // https://github.com/lorol/LITTLEFS
482
+ #include <LITTLEFS.h> // https://github.com/lorol/LITTLEFS
476
483
477
484
FS* filesystem = &LITTLEFS;
478
485
#define FileFS LITTLEFS
@@ -2198,7 +2205,7 @@ ESP_wifiManager.setRemoveDuplicateAPs(false);
2198
2205
#error This code is intended to run on the ESP8266 or ESP32 platform! Please check your Tools->Board setting.
2199
2206
#endif
2200
2207
2201
- #define ESP_WIFIMANAGER_VERSION_MIN_TARGET "ESP_WiFiManager v1.10.0 "
2208
+ #define ESP_WIFIMANAGER_VERSION_MIN_TARGET "ESP_WiFiManager v1.10.1 "
2202
2209
#define ESP_WIFIMANAGER_VERSION_MIN 1010000
2203
2210
2204
2211
// Use from 0 to 4. Higher number, more debugging messages and memory usage.
@@ -2224,13 +2231,13 @@ ESP_wifiManager.setRemoveDuplicateAPs(false);
2224
2231
WiFiMulti wifiMulti;
2225
2232
2226
2233
// LittleFS has higher priority than SPIFFS
2227
- #if ( ARDUINO_ESP32C3_DEV )
2228
- // Currently, ESP32-C3 only supporting SPIFFS and EEPROM. Will fix to support LittleFS
2229
- #define USE_LITTLEFS false
2230
- #define USE_SPIFFS true
2231
- #else
2234
+ #if ( defined(ESP_ARDUINO_VERSION_MAJOR) && (ESP_ARDUINO_VERSION_MAJOR >= 2) )
2232
2235
#define USE_LITTLEFS true
2233
2236
#define USE_SPIFFS false
2237
+ #elif defined(ARDUINO_ESP32C3_DEV)
2238
+ // For core v1.0.6-, ESP32-C3 only supporting SPIFFS and EEPROM. To use v2.0.0+ for LittleFS
2239
+ #define USE_LITTLEFS false
2240
+ #define USE_SPIFFS true
2234
2241
#endif
2235
2242
2236
2243
#if USE_LITTLEFS
@@ -2242,15 +2249,15 @@ ESP_wifiManager.setRemoveDuplicateAPs(false);
2242
2249
#if ( defined(ESP_ARDUINO_VERSION_MAJOR) && (ESP_ARDUINO_VERSION_MAJOR >= 2) )
2243
2250
#warning Using ESP32 Core 1.0.6 or 2.0.0+
2244
2251
// The library has been merged into esp32 core from release 1.0.6
2245
- #include <LittleFS.h>
2252
+ #include <LittleFS.h> // https://github.com/espressif/arduino-esp32/tree/master/libraries/LittleFS
2246
2253
2247
2254
FS* filesystem = &LittleFS;
2248
2255
#define FileFS LittleFS
2249
2256
#define FS_Name "LittleFS"
2250
2257
#else
2251
2258
#warning Using ESP32 Core 1.0.5-. You must install LITTLEFS library
2252
2259
// The library has been merged into esp32 core from release 1.0.6
2253
- #include <LITTLEFS.h> // https://github.com/lorol/LITTLEFS
2260
+ #include <LITTLEFS.h> // https://github.com/lorol/LITTLEFS
2254
2261
2255
2262
FS* filesystem = &LITTLEFS;
2256
2263
#define FileFS LITTLEFS
@@ -3570,7 +3577,7 @@ This is terminal debug output when running [ConfigOnSwitchFS_MQTT_Ptr](examples/
3570
3577
3571
3578
```
3572
3579
Starting ConfigOnSwichFS_MQTT_Ptr using LittleFS on ESP8266_NODEMCU_ESP12E
3573
- ESP_WiFiManager v1.9.0
3580
+ ESP_WiFiManager v1.10.1
3574
3581
Configuration file not found
3575
3582
Failed to read configuration file, using default values
3576
3583
[ WM] RFC925 Hostname = ConfigOnSwichFS-MQTT
@@ -3682,8 +3689,8 @@ This is terminal debug output when running [ESP32_FSWebServer_DRD](examples/ESP3
3682
3689
3683
3690
```cpp
3684
3691
Starting ESP32_FSWebServer_DRD with DoubleResetDetect using SPIFFS on ESP32_DEV
3685
- ESP_WiFiManager v1.9.0
3686
- ESP_DoubleResetDetector v1.2.1
3692
+ ESP_WiFiManager v1.10.1
3693
+ ESP_DoubleResetDetector v1.3.0
3687
3694
FS File: /ConfigSW.json, size: 150B
3688
3695
FS File: /CanadaFlag_1.png, size: 40.25KB
3689
3696
FS File: /CanadaFlag_2.png, size: 8.12KB
@@ -3747,8 +3754,8 @@ This is terminal debug output when running [ESP32_FSWebServer_DRD](examples/ESP3
3747
3754
3748
3755
```
3749
3756
Starting ESP32_FSWebServer_DRD with DoubleResetDetect using LittleFS on ESP32_DEV
3750
- ESP_WiFiManager v1.9.0
3751
- ESP_DoubleResetDetector v1.2.1
3757
+ ESP_WiFiManager v1.10.1
3758
+ ESP_DoubleResetDetector v1.3.0
3752
3759
FS File: /CanadaFlag_1.png, size: 40.25KB
3753
3760
FS File: /CanadaFlag_2.png, size: 8.12KB
3754
3761
FS File: /CanadaFlag_3.jpg, size: 10.89KB
@@ -3806,8 +3813,8 @@ This is terminal debug output when running [ConfigOnDRD_FS_MQTT_Ptr_Complex](exa
3806
3813
3807
3814
```
3808
3815
Starting ConfigOnDRD_FS_MQTT_Ptr_Complex using LittleFS on ESP32_DEV
3809
- ESP_WiFiManager v1.9.0
3810
- ESP_DoubleResetDetector v1.2.1
3816
+ ESP_WiFiManager v1.10.1
3817
+ ESP_DoubleResetDetector v1.3.0
3811
3818
{"AIO_KEY_Label":"aio_key","AIO_SERVER_Label":"io.adafruit.com","AIO_SERVERPORT_Label":"1883","AIO_USERNAME_Label":"user_name"}
3812
3819
Config File successfully parsed
3813
3820
LittleFS Flag read = 0xd0d04321
@@ -3849,8 +3856,8 @@ WWWW WTWWWW WWTWWW WWWTWW WWWWTW WWWWW
3849
3856
3850
3857
```
3851
3858
Starting ConfigOnDRD_FS_MQTT_Ptr_Complex using LittleFS on ESP32_DEV
3852
- ESP_WiFiManager v1.9.0
3853
- ESP_DoubleResetDetector v1.2.1
3859
+ ESP_WiFiManager v1.10.1
3860
+ ESP_DoubleResetDetector v1.3.0
3854
3861
{"AIO_KEY_Label":"aio_key","AIO_SERVER_Label":"io.adafruit.com","AIO_SERVERPORT_Label":"1883","AIO_USERNAME_Label":"user_name"}
3855
3862
Config File successfully parsed
3856
3863
LittleFS Flag read = 0xd0d01234
@@ -3934,8 +3941,8 @@ This is terminal debug output when running [ConfigOnDRD_FS_MQTT_Ptr_Complex](exa
3934
3941
3935
3942
```
3936
3943
Starting ConfigOnDRD_FS_MQTT_Ptr_Medium using LittleFS on ESP8266_NODEMCU_ESP12E
3937
- ESP_WiFiManager v1.9.0
3938
- ESP_DoubleResetDetector v1.2.1
3944
+ ESP_WiFiManager v1.10.1
3945
+ ESP_DoubleResetDetector v1.3.0
3939
3946
{"AIO_KEY_Label":"aio_key","AIO_SERVER_Label":"io.adafruit.com","AIO_SERVERPORT_Label":"1883","AIO_USERNAME_Label":"user_name"}
3940
3947
Config File successfully parsed
3941
3948
LittleFS Flag read = 0xd0d04321
@@ -3974,8 +3981,8 @@ TWWWW WTWWWW WWTWWW WWWTWW WWWWTW WWWWW
3974
3981
3975
3982
```
3976
3983
Starting ConfigOnDRD_FS_MQTT_Ptr_Medium using LittleFS on ESP8266_NODEMCU_ESP12E
3977
- ESP_WiFiManager v1.9.0
3978
- ESP_DoubleResetDetector v1.2.1
3984
+ ESP_WiFiManager v1.10.1
3985
+ ESP_DoubleResetDetector v1.3.0
3979
3986
{"AIO_KEY_Label":"aio_key","AIO_SERVER_Label":"io.adafruit.com","AIO_SERVERPORT_Label":"1883","AIO_USERNAME_Label":"user_name"}
3980
3987
Config File successfully parsed
3981
3988
LittleFS Flag read = 0xd0d01234
@@ -4051,8 +4058,8 @@ This is terminal debug output when running [ConfigOnDoubleReset](examples/Config
4051
4058
4052
4059
```
4053
4060
Starting ConfigOnDoubleReset with DoubleResetDetect using LittleFS on ESP32S2_DEV
4054
- ESP_WiFiManager v1.9.0
4055
- ESP_DoubleResetDetector v1.2.1
4061
+ ESP_WiFiManager v1.10.1
4062
+ ESP_DoubleResetDetector v1.3.0
4056
4063
[WM] RFC925 Hostname = ConfigOnDoubleReset
4057
4064
[WM] setAPStaticIPConfig
4058
4065
[WM] Set CORS Header to : Your Access-Control-Allow-Origin
@@ -4101,8 +4108,8 @@ This is terminal debug output when running [ConfigOnDoubleReset](examples/Config
4101
4108
4102
4109
```
4103
4110
Starting ConfigOnDoubleReset with DoubleResetDetect using LittleFS on ESP32_DEV
4104
- ESP_WiFiManager v1.9.0
4105
- ESP_DoubleResetDetector v1.2.1
4111
+ ESP_WiFiManager v1.10.1
4112
+ ESP_DoubleResetDetector v1.3.0
4106
4113
[WM] RFC925 Hostname = ConfigOnDoubleReset
4107
4114
[WM] Set CORS Header to : Your Access-Control-Allow-Origin
4108
4115
ESP Self-Stored: SSID = HueNet1, Pass = password
@@ -4211,8 +4218,8 @@ Local Date/Time: Thu May 6 21:29:18 2021
4211
4218
4212
4219
```
4213
4220
Starting ConfigOnDoubleReset with DoubleResetDetect using LittleFS on ESP32_DEV
4214
- ESP_WiFiManager v1.9.0
4215
- ESP_DoubleResetDetector v1.2.1
4221
+ ESP_WiFiManager v1.10.1
4222
+ ESP_DoubleResetDetector v1.3.0
4216
4223
[WM] RFC925 Hostname = ConfigOnDoubleReset
4217
4224
[WM] Set CORS Header to : Your Access-Control-Allow-Origin
4218
4225
ESP Self-Stored: SSID = HueNet1, Pass = password
@@ -4262,8 +4269,8 @@ This is terminal debug output when running [ConfigOnDoubleReset](examples/Config
4262
4269
4263
4270
```
4264
4271
Starting ConfigOnDoubleReset with DoubleResetDetect using LittleFS on ESP32S2_DEV
4265
- ESP_WiFiManager v1.9.0
4266
- ESP_DoubleResetDetector v1.2.1
4272
+ ESP_WiFiManager v1.10.1
4273
+ ESP_DoubleResetDetector v1.3.0
4267
4274
[WM] RFC925 Hostname = ConfigOnDoubleReset
4268
4275
[WM] Set CORS Header to : Your Access-Control-Allow-Origin
4269
4276
ESP Self-Stored: SSID = HueNet1, Pass = password
@@ -4408,8 +4415,8 @@ Local Date/Time: Thu May 6 21:29:18 2021
4408
4415
4409
4416
```
4410
4417
Starting ConfigOnDoubleReset with DoubleResetDetect using LittleFS on ESP32S2_DEV
4411
- ESP_WiFiManager v1.9.0
4412
- ESP_DoubleResetDetector v1.2.1
4418
+ ESP_WiFiManager v1.10.1
4419
+ ESP_DoubleResetDetector v1.3.0
4413
4420
[WM] RFC925 Hostname = ConfigOnDoubleReset
4414
4421
[WM] Set CORS Header to : Your Access-Control-Allow-Origin
4415
4422
ESP Self-Stored: SSID = HueNet1, Pass = password
@@ -4461,8 +4468,8 @@ This is terminal debug output when running [ESP32_FSWebServer_DRD](examples/ESP3
4461
4468
4462
4469
```
4463
4470
Starting ESP32_FSWebServer_DRD with DoubleResetDetect using SPIFFS on ESP32C3_DEV
4464
- ESP_WiFiManager v1.9.0
4465
- ESP_DoubleResetDetector v1.2.1
4471
+ ESP_WiFiManager v1.10.1
4472
+ ESP_DoubleResetDetector v1.3.0
4466
4473
FS File: wm_cp.dat, size: 4B
4467
4474
FS File: wm_cp.bak, size: 4B
4468
4475
FS File: wmssl_conf.dat, size: 376B
@@ -4533,7 +4540,7 @@ This is terminal debug output when running [ConfigOnDoubleReset](examples/Config
4533
4540
4534
4541
```
4535
4542
Starting ConfigOnDoubleReset with DoubleResetDetect using LittleFS on ESP32S3_DEV
4536
- ESP_WiFiManager v1.10.0
4543
+ ESP_WiFiManager v1.10.1
4537
4544
ESP_DoubleResetDetector v1.3.0
4538
4545
[WM] RFC925 Hostname = ConfigOnDoubleReset
4539
4546
[WM] Set CORS Header to : Your Access-Control-Allow-Origin
@@ -4584,6 +4591,54 @@ Local Date/Time: Thu Feb 10 23:26:26 2022
4584
4591
4585
4592
---
4586
4593
4594
+ #### 11. [ ConfigOnDoubleReset] ( examples/ConfigOnDoubleReset ) using LittleFS on ESP32C3_DEV
4595
+
4596
+ This is terminal debug output when running [ ConfigOnDoubleReset] ( examples/ConfigOnDoubleReset ) on ** ESP32C3_DEV** .
4597
+
4598
+
4599
+ ```
4600
+ Starting ConfigOnDoubleReset with DoubleResetDetect using LittleFS on ESP32C3_DEV
4601
+ ESP_WiFiManager v1.10.1
4602
+ ESP_DoubleResetDetector v1.3.0
4603
+ [WM] RFC925 Hostname = ConfigOnDoubleReset
4604
+ [WM] Set CORS Header to : Your Access-Control-Allow-Origin
4605
+ ESP Self-Stored: SSID = HueNet1, Pass = password
4606
+ [WM] * Add SSID = HueNet1 , PW = password
4607
+ Got ESP Self-Stored Credentials. Timeout 120s for Config Portal
4608
+ [WM] LoadWiFiCfgFile
4609
+ [WM] OK
4610
+ [WM] stationIP = 0.0.0.0 , gatewayIP = 192.168.2.1
4611
+ [WM] netMask = 255.255.255.0
4612
+ [WM] dns1IP = 192.168.2.1 , dns2IP = 8.8.8.8
4613
+ Got stored Credentials. Timeout 120s for Config Portal
4614
+ [WM] Current TZ_Name = America/New_York , TZ = EST5EDT,M3.2.0,M11.1.0
4615
+ LittleFS Flag read = 0xD0D04321
4616
+ No doubleResetDetected
4617
+ Saving config file...
4618
+ Saving config file OK
4619
+ [WM] * Add SSID = HueNet1 , PW = password
4620
+ [WM] * Add SSID = HueNet2 , PW = password
4621
+ ConnectMultiWiFi in setup
4622
+ [WM] ConnectMultiWiFi with :
4623
+ [WM] * Flash-stored Router_SSID = HueNet1 , Router_Pass = password
4624
+ [WM] * Add SSID = HueNet1 , PW = password
4625
+ [WM] * Additional SSID = HueNet1 , PW = password
4626
+ [WM] * Additional SSID = HueNet2 , PW = password
4627
+ [WM] Connecting MultiWifi...
4628
+ [WM] WiFi connected after time: 1
4629
+ [WM] SSID: HueNet1 ,RSSI= -20
4630
+ [WM] Channel: 2 ,IP address: 192.168.2.85
4631
+ After waiting 8.31 secs more in setup(), connection result is connected. Local IP: 192.168.2.85
4632
+ [WM] freeing allocated params!
4633
+ Stop doubleResetDetecting
4634
+ Saving config file...
4635
+ Saving config file OK
4636
+ Local Date/Time: Fri Feb 11 18:40:46 2022
4637
+ Local Date/Time: Fri Feb 11 18:41:46 2022
4638
+ Local Date/Time: Fri Feb 11 18:42:46 2022
4639
+ Local Date/Time: Fri Feb 11 18:43:46 2022
4640
+ ```
4641
+
4587
4642
---
4588
4643
---
4589
4644
0 commit comments