Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Commit 98490f4

Browse files
authored
v1.8.1 to add LittleFS support to ESP32-C3
### Release v1.8.1 1. Add LittleFS support to `ESP32-C3`. 2. Use `ESP32-core's LittleFS` library instead of `Lorol's LITTLEFS` library for ESP32 core v2.0.0+
1 parent 2fbd185 commit 98490f4

File tree

8 files changed

+128
-63
lines changed

8 files changed

+128
-63
lines changed

README.md

Lines changed: 76 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
* [5.1 MRD/DRD => Open Config Portal](#51-mrddrd--open-config-portal)
8686
* [5.2 Config Data Saved => Connection to Adafruit MQTT](#52-config-data-saved--connection-to-adafruit-mqtt)
8787
* [6. ESP_WiFi on ESP32S3_DEV](#6-ESP_WiFi-on-ESP32S3_DEV) **New**
88+
* [7. ESP_WiFi on ESP32C3_DEV using LittleFS](#7-ESP_WiFi-on-ESP32C3_DEV-using-LittleFS) **New**
8889
* [Debug](#debug)
8990
* [Troubleshooting](#troubleshooting)
9091
* [Issues](#issues)
@@ -137,7 +138,7 @@ This [**ESP_WiFiManager_Lite** library](https://github.com/khoih-prog/ESP_WiFiMa
137138

138139
1. **ESP8266 and ESP32-based boards using EEPROM, SPIFFS or LittleFS**.
139140
2. **ESP32-S2 (ESP32-S2 Saola, AI-Thinker ESP-12K, etc.) using EEPROM, SPIFFS or LittleFS**.
140-
3. **ESP32-C3 (ARDUINO_ESP32C3_DEV) using EEPROM or SPIFFS**.
141+
3. **ESP32-C3 (ARDUINO_ESP32C3_DEV) using EEPROM, SPIFFS or LittleFS**.
141142
4. **ESP32-S3 (ESP32S3_DEV, ESP32_S3_BOX, UM TINYS3, UM PROS3, UM FEATHERS3, etc.) using EEPROM, SPIFFS or LittleFS**.
142143

143144
---
@@ -971,13 +972,13 @@ void loop()
971972
/////////////////////////////////////////////
972973

973974
// LittleFS has higher priority than SPIFFS
974-
#if ( ARDUINO_ESP32C3_DEV )
975-
// Currently, ESP32-C3 only supporting SPIFFS and EEPROM. Will fix to support LittleFS
976-
#define USE_LITTLEFS false
977-
#define USE_SPIFFS true
978-
#else
975+
#if ( defined(ESP_ARDUINO_VERSION_MAJOR) && (ESP_ARDUINO_VERSION_MAJOR >= 2) )
979976
#define USE_LITTLEFS true
980977
#define USE_SPIFFS false
978+
#elif defined(ARDUINO_ESP32C3_DEV)
979+
// For core v1.0.6-, ESP32-C3 only supporting SPIFFS and EEPROM. To use v2.0.0+ for LittleFS
980+
#define USE_LITTLEFS false
981+
#define USE_SPIFFS true
981982
#endif
982983

983984
/////////////////////////////////////////////
@@ -1232,8 +1233,8 @@ This is the terminal output when running [**ESP_WiFi**](examples/ESP_WiFi) examp
12321233

12331234
```
12341235
Starting ESP_WiFi using LittleFS on ESP32_DEV
1235-
ESP_WiFiManager_Lite v1.7.0
1236-
ESP_MultiResetDetector v1.2.1
1236+
ESP_WiFiManager_Lite v1.8.1
1237+
ESP_MultiResetDetector v1.3.0
12371238
LittleFS Flag read = 0xFFFC0003
12381239
multiResetDetectorFlag = 0xFFFC0003
12391240
lowerBytes = 0x0003, upperBytes = 0x0003
@@ -1303,8 +1304,8 @@ FFFFFFFFF
13031304

13041305
```
13051306
Starting ESP_WiFi using LittleFS on ESP32_DEV
1306-
ESP_WiFiManager_Lite v1.7.0
1307-
ESP_MultiResetDetector v1.2.1
1307+
ESP_WiFiManager_Lite v1.8.1
1308+
ESP_MultiResetDetector v1.3.0
13081309
LittleFS Flag read = 0xFFFE0001
13091310
multiResetDetectorFlag = 0xFFFE0001
13101311
lowerBytes = 0x0001, upperBytes = 0x0001
@@ -1375,8 +1376,8 @@ This is the terminal output when running [**ESP_WiFi_MQTT**](examples/ESP_WiFi_M
13751376

13761377
```
13771378
Starting ESP_WiFi_MQTT using LittleFS on ESP8266_NODEMCU
1378-
ESP_WiFiManager_Lite v1.7.0
1379-
ESP_MultiResetDetector v1.2.1
1379+
ESP_WiFiManager_Lite v1.8.1
1380+
ESP_MultiResetDetector v1.3.0
13801381
LittleFS Flag read = 0xFFFE0001
13811382
multiResetDetectorFlag = 0xFFFE0001
13821383
lowerBytes = 0x0001, upperBytes = 0x0001
@@ -1450,8 +1451,8 @@ NNN
14501451
14511452
14521453
Starting ESP_WiFi_MQTT using LittleFS on ESP8266_NODEMCU
1453-
ESP_WiFiManager_Lite v1.7.0
1454-
ESP_MultiResetDetector v1.2.1
1454+
ESP_WiFiManager_Lite v1.8.1
1455+
ESP_MultiResetDetector v1.3.0
14551456
LittleFS Flag read = 0xFFFE0001
14561457
multiResetDetectorFlag = 0xFFFE0001
14571458
lowerBytes = 0x0001, upperBytes = 0x0001
@@ -1542,8 +1543,8 @@ This is the terminal output when running [**ESP_WiFi_MQTT**](examples/ESP_WiFi_M
15421543

15431544
```
15441545
Starting ESP_WiFi_MQTT using LittleFS on ESP32S2_DEV
1545-
ESP_WiFiManager_Lite v1.7.0
1546-
ESP_MultiResetDetector v1.2.1
1546+
ESP_WiFiManager_Lite v1.8.1
1547+
ESP_MultiResetDetector v1.3.0
15471548
LittleFS Flag read = 0xFFFE0001
15481549
multiResetDetectorFlag = 0xFFFE0001
15491550
lowerBytes = 0x0001, upperBytes = 0x0001
@@ -1655,8 +1656,8 @@ entry 0x4004c190
16551656
16561657
16571658
Starting ESP_WiFi_MQTT using LittleFS on ESP32S2_DEV
1658-
ESP_WiFiManager_Lite v1.7.0
1659-
ESP_MultiResetDetector v1.2.1
1659+
ESP_WiFiManager_Lite v1.8.1
1660+
ESP_MultiResetDetector v1.3.0
16601661
LittleFS Flag read = 0xFFFE0001
16611662
multiResetDetectorFlag = 0xFFFE0001
16621663
lowerBytes = 0x0001, upperBytes = 0x0001
@@ -1757,8 +1758,8 @@ This is the terminal output when running [**ESP_WiFi_MQTT**](examples/ESP_WiFi_M
17571758

17581759
```
17591760
Starting ESP_WiFi_MQTT using LittleFS on ESP32S2_DEV
1760-
ESP_WiFiManager_Lite v1.7.0
1761-
ESP_MultiResetDetector v1.2.1
1761+
ESP_WiFiManager_Lite v1.8.1
1762+
ESP_MultiResetDetector v1.3.0
17621763
LittleFS Flag read = 0xFFFC0003
17631764
multiResetDetectorFlag = 0xFFFC0003
17641765
lowerBytes = 0x0003, upperBytes = 0x0003
@@ -1785,8 +1786,8 @@ NNNN NNNNN NNNNN NNNNN NN[WML] h:UpdLittleFS
17851786

17861787
```
17871788
Starting ESP_WiFi_MQTT using LittleFS on ESP32S2_DEV
1788-
ESP_WiFiManager_Lite v1.7.0
1789-
ESP_MultiResetDetector v1.2.1
1789+
ESP_WiFiManager_Lite v1.8.1
1790+
ESP_MultiResetDetector v1.3.0
17901791
LittleFS Flag read = 0xFFFE0001
17911792
multiResetDetectorFlag = 0xFFFE0001
17921793
lowerBytes = 0x0001, upperBytes = 0x0001
@@ -1841,8 +1842,8 @@ This is the terminal output when running [**ESP_WiFi**](examples/ESP_WiFi) examp
18411842

18421843
```
18431844
Starting ESP_WiFi_MQTT using LittleFS on ESP32_DEV
1844-
ESP_WiFiManager_Lite v1.7.0
1845-
ESP_MultiResetDetector v1.2.1
1845+
ESP_WiFiManager_Lite v1.8.1
1846+
ESP_MultiResetDetector v1.3.0
18461847
LittleFS Flag read = 0xFFFC0003
18471848
multiResetDetectorFlag = 0xFFFC0003
18481849
lowerBytes = 0x0003, upperBytes = 0x0003
@@ -1885,8 +1886,8 @@ N
18851886

18861887
```
18871888
Starting ESP_WiFi_MQTT using LittleFS on ESP32_DEV
1888-
ESP_WiFiManager_Lite v1.7.0
1889-
ESP_MultiResetDetector v1.2.1
1889+
ESP_WiFiManager_Lite v1.8.1
1890+
ESP_MultiResetDetector v1.3.0
18901891
LittleFS Flag read = 0xFFFE0001
18911892
multiResetDetectorFlag = 0xFFFE0001
18921893
lowerBytes = 0x0001, upperBytes = 0x0001
@@ -1933,7 +1934,7 @@ This is the terminal output when running [**ESP_WiFi**](examples/ESP_WiFi) examp
19331934

19341935
```
19351936
Starting ESP_WiFi using LittleFS on ESP32S3_DEV
1936-
ESP_WiFiManager_Lite v1.8.0
1937+
ESP_WiFiManager_Lite v1.8.1
19371938
ESP_MultiResetDetector v1.3.0
19381939
LittleFS Flag read = 0xFFFE0001
19391940
multiResetDetectorFlag = 0xFFFE0001
@@ -1942,11 +1943,11 @@ No multiResetDetected, number of times = 1
19421943
LittleFS Flag read = 0xFFFE0001
19431944
Saving config file...
19441945
Saving config file OK
1945-
[WML] Hdr=ESP_WM_LITE,SSID=HueNet1,PW=jenniqqs
1946-
[WML] SSID1=HueNet2,PW1=jenniqqs
1946+
[WML] Hdr=ESP_WM_LITE,SSID=HueNet1,PW=password
1947+
[WML] SSID1=HueNet2,PW1=password
19471948
[WML] BName=ESP32_S3
1948-
[WML] Hdr=ESP_WM_LITE,SSID=HueNet1,PW=jenniqqs
1949-
[WML] SSID1=HueNet2,PW1=jenniqqs
1949+
[WML] Hdr=ESP_WM_LITE,SSID=HueNet1,PW=password
1950+
[WML] SSID1=HueNet2,PW1=password
19501951
[WML] BName=ESP32_S3
19511952
[WML] WiFi connected after time: 0
19521953
[WML] SSID=HueNet1,RSSI=-23
@@ -1965,6 +1966,48 @@ Saving config file OK
19651966
HHH
19661967
```
19671968

1969+
---
1970+
1971+
### 7. [ESP_WiFi](examples/ESP_WiFi) on ESP32C3_DEV using LittleFS
1972+
1973+
1974+
This is the terminal output when running [**ESP_WiFi**](examples/ESP_WiFi) example on **ESP32C3_DEV** using LittleFS
1975+
1976+
1977+
```
1978+
Starting ESP_WiFi using LittleFS on ESP32C3_DEV
1979+
ESP_WiFiManager_Lite v1.8.1
1980+
ESP_MultiResetDetector v1.3.0
1981+
LittleFS Flag read = 0xFFFE0001
1982+
multiResetDetectorFlag = 0xFFFE0001
1983+
lowerBytes = 0x0001, upperBytes = 0x0001
1984+
No multiResetDetected, number of times = 1
1985+
LittleFS Flag read = 0xFFFE0001
1986+
Saving config file...
1987+
Saving config file OK
1988+
[WML] Hdr=ESP_WM_LITE,SSID=HueNet1,PW=password
1989+
[WML] SSID1=HueNet2,PW1=password
1990+
[WML] BName=ESP32_C3
1991+
[WML] Hdr=ESP_WM_LITE,SSID=HueNet1,PW=password
1992+
[WML] SSID1=HueNet2,PW1=password
1993+
[WML] BName=ESP32_C3
1994+
[WML] WiFi connected after time: 0
1995+
[WML] SSID=HueNet1,RSSI=-21
1996+
[WML] Channel=2,IP=192.168.2.85
1997+
H
1998+
Your stored Credentials :
1999+
Blynk Server1 = account.duckdns.org
2000+
Token1 = token1
2001+
Blynk Server2 = account.ddns.net
2002+
Token2 = token2
2003+
Port = 8080
2004+
MQTT Server = mqtt.duckdns.org
2005+
Stop multiResetDetecting
2006+
Saving config file...
2007+
Saving config file OK
2008+
HHH
2009+
```
2010+
19682011
---
19692012
---
19702013

@@ -2041,7 +2084,8 @@ Submit issues to: [ESP_WiFiManager_Lite issues](https://github.com/khoih-prog/ES
20412084
26. Fix ESP8266 bug not easy to connect to Config Portal for ESP8266 core v3.0.0+
20422085
27. Fix the blocking issue in loop() with configurable `WIFI_RECON_INTERVAL`
20432086
28. Add support to **ESP32-S3 (ESP32S3_DEV, ESP32_S3_BOX, UM TINYS3, UM PROS3, UM FEATHERS3, etc.) using EEPROM, SPIFFS or LittleFS**
2044-
2087+
29. Add `LittleFS` support to **ESP32-C3**
2088+
30. Use `ESP32-core's LittleFS` library instead of `Lorol's LITTLEFS` library for ESP32 core v2.0.0+
20452089

20462090
---
20472091
---

changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
## Table of Contents
1313

1414
* [Changelog](#changelog)
15+
* [Release v1.8.1](#release-v181)
1516
* [Release v1.8.0](#release-v180)
1617
* [Release v1.7.0](#release-v170)
1718
* [Release v1.6.0](#release-v160)
@@ -28,6 +29,11 @@
2829

2930
## Changelog
3031

32+
### Release v1.8.1
33+
34+
1. Add LittleFS support to `ESP32-C3`.
35+
2. Use `ESP32-core's LittleFS` library instead of `Lorol's LITTLEFS` library for ESP32 core v2.0.0+
36+
3137
### Release v1.8.0
3238

3339
1. Add support to `ESP32-S3` (`ESP32S3_DEV, ESP32_S3_BOX, UM TINYS3, UM PROS3, UM FEATHERS3`, etc.) using [ESP32 core, esp32-s3-support branch, v2.0.2+](https://github.com/espressif/arduino-esp32/tree/esp32-s3-support)

examples/ESP_WiFi/defines.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@
5555
/////////////////////////////////////////////
5656

5757
// LittleFS has higher priority than SPIFFS
58-
#if ( ARDUINO_ESP32C3_DEV )
59-
// Currently, ESP32-C3 only supporting SPIFFS and EEPROM. Will fix to support LittleFS
60-
#define USE_LITTLEFS false
61-
#define USE_SPIFFS true
62-
#else
58+
#if ( defined(ESP_ARDUINO_VERSION_MAJOR) && (ESP_ARDUINO_VERSION_MAJOR >= 2) )
6359
#define USE_LITTLEFS true
6460
#define USE_SPIFFS false
61+
#elif defined(ARDUINO_ESP32C3_DEV)
62+
// For core v1.0.6-, ESP32-C3 only supporting SPIFFS and EEPROM. To use v2.0.0+ for LittleFS
63+
#define USE_LITTLEFS false
64+
#define USE_SPIFFS true
6565
#endif
6666

6767
/////////////////////////////////////////////

examples/ESP_WiFi_MQTT/defines.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@
4949
/////////////////////////////////////////////
5050

5151
// LittleFS has higher priority than SPIFFS
52-
#if ( ARDUINO_ESP32C3_DEV )
53-
// Currently, ESP32-C3 only supporting SPIFFS and EEPROM. Will fix to support LittleFS
54-
#define USE_LITTLEFS false
55-
#define USE_SPIFFS true
56-
#else
52+
#if ( defined(ESP_ARDUINO_VERSION_MAJOR) && (ESP_ARDUINO_VERSION_MAJOR >= 2) )
5753
#define USE_LITTLEFS true
5854
#define USE_SPIFFS false
55+
#elif defined(ARDUINO_ESP32C3_DEV)
56+
// For core v1.0.6-, ESP32-C3 only supporting SPIFFS and EEPROM. To use v2.0.0+ for LittleFS
57+
#define USE_LITTLEFS false
58+
#define USE_SPIFFS true
5959
#endif
6060

6161
/////////////////////////////////////////////

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ESP_WiFiManager_Lite",
3-
"version": "1.8.0",
3+
"version": "1.8.1",
44
"keywords": "wifi, wi-fi, MultiWiFi, multi-wifi, WiFiManager, esp8266, esp32, esp32-s2, esp32-s3, esp32-c3, Communication, iot, credentials, persistent, config-portal, DoubleReset, MultiReset, DoubleResetDetector, littlefs, spiffs, eeprom, light-weight",
55
"description": "Library to configure MultiWiFi/Credentials at runtime for ESP32 (including ESP32-S2, ESP32-S3 and ESP32-C3) and ESP8266 boards. You can also specify DHCP HostName, static AP and STA IP. Use much less memory compared to full-fledge WiFiManager. Config Portal will be auto-adjusted to match the number of dynamic custom parameters. Optional default Credentials to be autoloaded into Config Portal to use or change instead of manually input. Credentials are saved in LittleFS, SPIFFS or EEPROM. New powerful-yet-simple-to-use feature to enable adding dynamic custom parameters from sketch and input using the same Config Portal. Double or MultiDetectDetector as well as Virtual Switches feature permits entering Config Portal as requested. Configurable Customs HTML Headers, including Customs Style, Customs Head Elements, CORS Header",
66
"authors":

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=ESP_WiFiManager_Lite
2-
version=1.8.0
2+
version=1.8.1
33
author=Khoi Hoang
44
maintainer=Khoi Hoang <[email protected]>
55
license=MIT

0 commit comments

Comments
 (0)