|
86 | 86 | * [5.1 MRD/DRD => Open Config Portal](#51-mrddrd--open-config-portal)
|
87 | 87 | * [5.2 Config Data Saved => Connection to Adafruit MQTT](#52-config-data-saved--connection-to-adafruit-mqtt)
|
88 | 88 | * [6. ESPAsync_WiFi on ESP32S3_DEV](#6-ESPAsync_WiFi-on-ESP32S3_DEV) **New**
|
| 89 | + * [7. ESPAsync_WiFi on ESP32C3_DEV using LittleFS](#7-ESPAsync_WiFi-on-ESP32C3_DEV-using-LittleFS) **New** |
89 | 90 | * [Debug](#debug)
|
90 | 91 | * [Troubleshooting](#troubleshooting)
|
91 | 92 | * [Issues](#issues)
|
@@ -160,7 +161,7 @@ This [**ESPAsync_WiFiManager_Lite** library](https://github.com/khoih-prog/ESPAs
|
160 | 161 |
|
161 | 162 | 1. **ESP8266 and ESP32-based boards using EEPROM, SPIFFS or LittleFS**.
|
162 | 163 | 2. **ESP32-S2 (ESP32-S2 Saola, AI-Thinker ESP-12K, etc.) using EEPROM, SPIFFS or LittleFS**.
|
163 |
| - 3. **ESP32-C3 (ARDUINO_ESP32C3_DEV) using EEPROM or SPIFFS**. |
| 164 | + 3. **ESP32-C3 (ARDUINO_ESP32C3_DEV) using EEPROM, SPIFFS or LittleFS**. |
164 | 165 | 4. **ESP32-S3 (ESP32S3_DEV, ESP32_S3_BOX, UM TINYS3, UM PROS3, UM FEATHERS3, etc.) using EEPROM, SPIFFS or LittleFS**.
|
165 | 166 |
|
166 | 167 | ---
|
@@ -996,13 +997,13 @@ void loop()
|
996 | 997 | /////////////////////////////////////////////
|
997 | 998 |
|
998 | 999 | // LittleFS has higher priority than SPIFFS
|
999 |
| -#if ( ARDUINO_ESP32C3_DEV ) |
1000 |
| - // Currently, ESP32-C3 only supporting SPIFFS and EEPROM. Will fix to support LittleFS |
1001 |
| - #define USE_LITTLEFS false |
1002 |
| - #define USE_SPIFFS true |
1003 |
| -#else |
| 1000 | +#if ( defined(ESP_ARDUINO_VERSION_MAJOR) && (ESP_ARDUINO_VERSION_MAJOR >= 2) ) |
1004 | 1001 | #define USE_LITTLEFS true
|
1005 | 1002 | #define USE_SPIFFS false
|
| 1003 | +#elif defined(ARDUINO_ESP32C3_DEV) |
| 1004 | + // For core v1.0.6-, ESP32-C3 only supporting SPIFFS and EEPROM. To use v2.0.0+ for LittleFS |
| 1005 | + #define USE_LITTLEFS false |
| 1006 | + #define USE_SPIFFS true |
1006 | 1007 | #endif
|
1007 | 1008 |
|
1008 | 1009 | /////////////////////////////////////////////
|
@@ -1257,7 +1258,7 @@ This is the terminal output when running [**ESPAsync_WiFi_MQTT**](examples/ESPAs
|
1257 | 1258 |
|
1258 | 1259 | ```
|
1259 | 1260 | Starting ESPAsync_WiFi_MQTT using LittleFS on ESP32_DEV
|
1260 |
| -ESPAsync_WiFiManager_Lite v1.8.0 |
| 1261 | +ESPAsync_WiFiManager_Lite v1.8.1 |
1261 | 1262 | ESP_MultiResetDetector v1.3.0
|
1262 | 1263 | LittleFS Flag read = 0xFFFE0001
|
1263 | 1264 | multiResetDetectorFlag = 0xFFFE0001
|
@@ -1332,7 +1333,7 @@ NNN
|
1332 | 1333 |
|
1333 | 1334 |
|
1334 | 1335 | Starting ESPAsync_WiFi_MQTT using LittleFS on ESP32_DEV
|
1335 |
| -ESPAsync_WiFiManager_Lite v1.8.0 |
| 1336 | +ESPAsync_WiFiManager_Lite v1.8.1 |
1336 | 1337 | ESP_MultiResetDetector v1.3.0
|
1337 | 1338 | LittleFS Flag read = 0xFFFE0001
|
1338 | 1339 | multiResetDetectorFlag = 0xFFFE0001
|
@@ -1424,7 +1425,7 @@ This is the terminal output when running [**ESPAsync_WiFi_MQTT**](examples/ESPAs
|
1424 | 1425 |
|
1425 | 1426 | ```
|
1426 | 1427 | Starting ESPAsync_WiFi_MQTT using LittleFS on ESP8266_NODEMCU
|
1427 |
| -ESPAsync_WiFiManager_Lite v1.8.0 |
| 1428 | +ESPAsync_WiFiManager_Lite v1.8.1 |
1428 | 1429 | ESP_MultiResetDetector v1.3.0
|
1429 | 1430 | LittleFS Flag read = 0xFFFE0001
|
1430 | 1431 | multiResetDetectorFlag = 0xFFFE0001
|
@@ -1499,7 +1500,7 @@ NNN
|
1499 | 1500 |
|
1500 | 1501 |
|
1501 | 1502 | Starting ESPAsync_WiFi_MQTT using LittleFS on ESP8266_NODEMCU
|
1502 |
| -ESPAsync_WiFiManager_Lite v1.8.0 |
| 1503 | +ESPAsync_WiFiManager_Lite v1.8.1 |
1503 | 1504 | ESP_MultiResetDetector v1.3.0
|
1504 | 1505 | LittleFS Flag read = 0xFFFE0001
|
1505 | 1506 | multiResetDetectorFlag = 0xFFFE0001
|
@@ -1590,7 +1591,7 @@ This is the terminal output when running [**ESPAsync_WiFi_MQTT**](examples/ESPAs
|
1590 | 1591 |
|
1591 | 1592 | ```
|
1592 | 1593 | Starting ESPAsync_WiFi_MQTT using LittleFS on ESP32S2_DEV
|
1593 |
| -ESPAsync_WiFiManager_Lite v1.8.0 |
| 1594 | +ESPAsync_WiFiManager_Lite v1.8.1 |
1594 | 1595 | ESP_MultiResetDetector v1.3.0
|
1595 | 1596 | LittleFS Flag read = 0xFFFE0001
|
1596 | 1597 | multiResetDetectorFlag = 0xFFFE0001
|
@@ -1703,7 +1704,7 @@ entry 0x4004c190
|
1703 | 1704 |
|
1704 | 1705 |
|
1705 | 1706 | Starting ESPAsync_WiFi_MQTT using LittleFS on ESP32S2_DEV
|
1706 |
| -ESPAsync_WiFiManager_Lite v1.8.0 |
| 1707 | +ESPAsync_WiFiManager_Lite v1.8.1 |
1707 | 1708 | ESP_MultiResetDetector v1.3.0
|
1708 | 1709 | LittleFS Flag read = 0xFFFE0001
|
1709 | 1710 | multiResetDetectorFlag = 0xFFFE0001
|
@@ -1806,7 +1807,7 @@ This is the terminal output when running [**ESPAsync_WiFi_MQTT**](examples/ESPAs
|
1806 | 1807 |
|
1807 | 1808 | ```
|
1808 | 1809 | Starting ESPAsync_WiFi_MQTT using LittleFS on ESP32S2_DEV
|
1809 |
| -ESPAsync_WiFiManager_Lite v1.8.0 |
| 1810 | +ESPAsync_WiFiManager_Lite v1.8.1 |
1810 | 1811 | ESP_MultiResetDetector v1.3.0
|
1811 | 1812 | LittleFS Flag read = 0xFFFC0003
|
1812 | 1813 | multiResetDetectorFlag = 0xFFFC0003
|
@@ -1849,7 +1850,7 @@ entry 0x4004c190
|
1849 | 1850 |
|
1850 | 1851 | ```
|
1851 | 1852 | Starting ESPAsync_WiFi_MQTT using LittleFS on ESP32S2_DEV
|
1852 |
| -ESPAsync_WiFiManager_Lite v1.8.0 |
| 1853 | +ESPAsync_WiFiManager_Lite v1.8.1 |
1853 | 1854 | ESP_MultiResetDetector v1.3.0
|
1854 | 1855 | LittleFS Flag read = 0xFFFE0001
|
1855 | 1856 | multiResetDetectorFlag = 0xFFFE0001
|
@@ -1905,7 +1906,7 @@ This is the terminal output when running [**ESPAsync_WiFi_MQTT**](examples/ESPAs
|
1905 | 1906 |
|
1906 | 1907 | ```
|
1907 | 1908 | Starting ESPAsync_WiFi_MQTT using LittleFS on ESP32_DEV
|
1908 |
| -ESPAsync_WiFiManager_Lite v1.8.0 |
| 1909 | +ESPAsync_WiFiManager_Lite v1.8.1 |
1909 | 1910 | ESP_MultiResetDetector v1.3.0
|
1910 | 1911 | LittleFS Flag read = 0xFFFC0003
|
1911 | 1912 | multiResetDetectorFlag = 0xFFFC0003
|
@@ -1950,7 +1951,7 @@ NNNN NNNNN NNNNN N
|
1950 | 1951 |
|
1951 | 1952 | ```
|
1952 | 1953 | Starting ESPAsync_WiFi_MQTT using LittleFS on ESP32_DEV
|
1953 |
| -ESPAsync_WiFiManager_Lite v1.8.0 |
| 1954 | +ESPAsync_WiFiManager_Lite v1.8.1 |
1954 | 1955 | ESP_MultiResetDetector v1.3.0
|
1955 | 1956 | LittleFS Flag read = 0xFFFE0001
|
1956 | 1957 | multiResetDetectorFlag = 0xFFFE0001
|
@@ -1997,7 +1998,7 @@ This is the terminal output when running [**ESPAsync_WiFi**](examples/ESPAsync_W
|
1997 | 1998 |
|
1998 | 1999 | ```
|
1999 | 2000 | Starting ESPAsync_WiFi using LittleFS on ESP32S3_DEV
|
2000 |
| -ESPAsync_WiFiManager_Lite v1.8.0 |
| 2001 | +ESPAsync_WiFiManager_Lite v1.8.1 |
2001 | 2002 | ESP_MultiResetDetector v1.2.1
|
2002 | 2003 | LittleFS Flag read = 0xFFFE0001
|
2003 | 2004 | multiResetDetectorFlag = 0xFFFE0001
|
@@ -2029,6 +2030,47 @@ Saving config file OK
|
2029 | 2030 | H
|
2030 | 2031 | ```
|
2031 | 2032 |
|
| 2033 | +--- |
| 2034 | + |
| 2035 | +### 7. [ESPAsync_WiFi](examples/ESPAsync_WiFi) on ESP32C3_DEV using LittleFS |
| 2036 | + |
| 2037 | + |
| 2038 | +This is the terminal output when running [**ESPAsync_WiFi**](examples/ESPAsync_WiFi) example on **ESP32C3_DEV** using LittleFS |
| 2039 | + |
| 2040 | + |
| 2041 | +``` |
| 2042 | +Starting ESPAsync_WiFi using LittleFS on ESP32C3_DEV |
| 2043 | +ESPAsync_WiFiManager_Lite v1.8.1 |
| 2044 | +ESP_MultiResetDetector v1.3.0 |
| 2045 | +LittleFS Flag read = 0xFFFE0001 |
| 2046 | +multiResetDetectorFlag = 0xFFFE0001 |
| 2047 | +lowerBytes = 0x0001, upperBytes = 0x0001 |
| 2048 | +No multiResetDetected, number of times = 1 |
| 2049 | +LittleFS Flag read = 0xFFFE0001 |
| 2050 | +Saving config file... |
| 2051 | +Saving config file OK |
| 2052 | +[WML] Hdr=ESP_WM_LITE,SSID=HueNet1,PW=password |
| 2053 | +[WML] SSID1=HueNet2,PW1=password |
| 2054 | +[WML] BName=ESP32_C3 |
| 2055 | +[WML] Hdr=ESP_WM_LITE,SSID=HueNet1,PW=password |
| 2056 | +[WML] SSID1=HueNet2,PW1=password |
| 2057 | +[WML] BName=ESP32_C3 |
| 2058 | +[WML] WiFi connected after time: 0 |
| 2059 | +[WML] SSID=HueNet1,RSSI=-21 |
| 2060 | +[WML] Channel=2,IP=192.168.2.85 |
| 2061 | +H |
| 2062 | +Your stored Credentials : |
| 2063 | +Blynk Server1 = account.duckdns.org |
| 2064 | +Token1 = token1 |
| 2065 | +Blynk Server2 = account.ddns.net |
| 2066 | +Token2 = token2 |
| 2067 | +Port = 8080 |
| 2068 | +MQTT Server = mqtt.duckdns.org |
| 2069 | +Stop multiResetDetecting |
| 2070 | +Saving config file... |
| 2071 | +Saving config file OK |
| 2072 | +HHH |
| 2073 | +``` |
2032 | 2074 |
|
2033 | 2075 |
|
2034 | 2076 | ---
|
@@ -2108,6 +2150,9 @@ Submit issues to: [ESPAsync_WiFiManager_Lite issues](https://github.com/khoih-pr
|
2108 | 2150 | 24. Fix the blocking issue in loop() with configurable `WIFI_RECON_INTERVAL`
|
2109 | 2151 | 25. Optimize library code by using `reference-passing` instead of `value-passing`
|
2110 | 2152 | 26. Add support to **ESP32-S3 (ESP32S3_DEV, ESP32_S3_BOX, UM TINYS3, UM PROS3, UM FEATHERS3, etc.) using EEPROM, SPIFFS or LittleFS**
|
| 2153 | +27. Add `LittleFS` support to **ESP32-C3** |
| 2154 | +28. Use `ESP32-core's LittleFS` library instead of `Lorol's LITTLEFS` library for ESP32 core v2.0.0+ |
| 2155 | + |
2111 | 2156 |
|
2112 | 2157 | ---
|
2113 | 2158 | ---
|
|
0 commit comments