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

Commit 88571d9

Browse files
authored
v1.6.2
### Releases v1.6.2 1. Fix example misleading messages. Check [**Minor: examples/Async_ESP32_FSWebServer/ wrongly uses FileFS.begin(true)** #47](#47)
1 parent 54b4992 commit 88571d9

File tree

33 files changed

+501
-141
lines changed

33 files changed

+501
-141
lines changed

README.md

Lines changed: 43 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
* [Why Async is better](#why-async-is-better)
1717
* [Currently supported Boards](#currently-supported-boards)
1818
* [Changelog](#changelog)
19+
* [Releases v1.6.2](#releases-v162)
1920
* [Releases v1.6.1](#releases-v161)
2021
* [Releases v1.6.0](#releases-v160)
2122
* [Major Releases v1.5.0](#major-releases-v150)
@@ -46,7 +47,7 @@
4647
* [4. Update tools](#4-update-tools)
4748
* [4.1 Update Toolchain](#41-update-toolchain)
4849
* [4.2 Update esptool](#42-update-esptool)
49-
* [5. esp32-s2 WebServer Library Patch](#5-esp32-s2-webserver-library-patch)
50+
* [5. esp32-s2 WebServer Library Patch](#5-esp32-s2-webserver-library-patch)
5051
* [Note for Platform IO using ESP32 LittleFS](#note-for-platform-io-using-esp32-littlefs)
5152
* [HOWTO Fix `Multiple Definitions` Linker Error](#howto-fix-multiple-definitions-linker-error)
5253
* [HOWTO Use analogRead() with ESP32 running WiFi and/or BlueTooth (BT/BLE)](#howto-use-analogread-with-esp32-running-wifi-andor-bluetooth-btble)
@@ -203,6 +204,10 @@ This [**ESPAsync_WiFiManager_Lite** library](https://github.com/khoih-prog/ESPAs
203204

204205
## Changelog
205206

207+
### Releases v1.6.2
208+
209+
1. Fix example misleading messages. Check [**Minor: examples/Async_ESP32_FSWebServer/ wrongly uses FileFS.begin(true)** #47](https://github.com/khoih-prog/ESPAsync_WiFiManager/issues/47)
210+
206211
### Releases v1.6.1
207212

208213
1. Modify multiWiFi-related timings to work better with latest esp32 core v1.0.6
@@ -290,7 +295,7 @@ This [**ESPAsync_WiFiManager_Lite** library](https://github.com/khoih-prog/ESPAs
290295
6. [`ESPAsyncTCP v1.2.2+`](https://github.com/me-no-dev/ESPAsyncTCP) for ESP8266-based boards.
291296
7. [`AsyncTCP v1.1.1+`](https://github.com/me-no-dev/AsyncTCP) for ESP32-based boards
292297
8. [`ESP_DoubleResetDetector v1.1.1+`](https://github.com/khoih-prog/ESP_DoubleResetDetector) if using DRD feature. To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/ESP_DoubleResetDetector.svg?)](https://www.ardu-badge.com/ESP_DoubleResetDetector). Use v1.1.0+ if using LittleFS for EP32.
293-
9. [`LittleFS_esp32 v1.0.5+`](https://github.com/lorol/LITTLEFS) for ESP32-based boards using LittleFS. To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/LittleFS_esp32.svg?)](https://www.ardu-badge.com/LittleFS_esp32).
298+
9. [`LittleFS_esp32 v1.0.6+`](https://github.com/lorol/LITTLEFS) for ESP32-based boards using LittleFS. To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/LittleFS_esp32.svg?)](https://www.ardu-badge.com/LittleFS_esp32). **Notice**: This [`LittleFS_esp32 library`](https://github.com/lorol/LITTLEFS) has been integrated to Arduino [esp32 core v2.0.0](https://github.com/espressif/arduino-esp32/tree/master/libraries/LITTLEFS).
294299

295300
---
296301

@@ -2134,7 +2139,7 @@ ESPAsync_wifiManager.setRemoveDuplicateAPs(false);
21342139
#error This code is intended to run on the ESP8266 or ESP32 platform! Please check your Tools->Board setting.
21352140
#endif
21362141

2137-
#define ESP_ASYNC_WIFIMANAGER_VERSION_MIN_TARGET "ESPAsync_WiFiManager v1.6.1"
2142+
#define ESP_ASYNC_WIFIMANAGER_VERSION_MIN_TARGET "ESPAsync_WiFiManager v1.6.2"
21382143

21392144
// Use from 0 to 4. Higher number, more debugging messages and memory usage.
21402145
#define _ESPASYNC_WIFIMGR_LOGLEVEL_ 3
@@ -3197,14 +3202,30 @@ void setup()
31973202
if (!FileFS.begin(true))
31983203
#else
31993204
if (!FileFS.begin())
3200-
#endif
3205+
#endif
32013206
{
3202-
Serial.print(FS_Name);
3203-
Serial.println(F(" failed! AutoFormatting."));
3204-
32053207
#ifdef ESP8266
32063208
FileFS.format();
32073209
#endif
3210+
3211+
Serial.println(F("SPIFFS/LittleFS failed! Already tried formatting."));
3212+
3213+
if (!FileFS.begin())
3214+
{
3215+
// prevents debug info from the library to hide err message.
3216+
delay(100);
3217+
3218+
#if USE_LITTLEFS
3219+
Serial.println(F("LittleFS failed!. Please use SPIFFS or EEPROM. Stay forever"));
3220+
#else
3221+
Serial.println(F("SPIFFS failed!. Please use LittleFS or EEPROM. Stay forever"));
3222+
#endif
3223+
3224+
while (true)
3225+
{
3226+
delay(1);
3227+
}
3228+
}
32083229
}
32093230

32103231
// New in v1.4.0
@@ -3300,7 +3321,7 @@ This is terminal debug output when running [Async_ConfigOnDRD_FS_MQTT_Ptr_Medium
33003321
33013322
```
33023323
Starting Async_ConfigOnDRD_FS_MQTT_Ptr_Medium using LittleFS on ESP32_DEV
3303-
ESPAsync_WiFiManager v1.6.1
3324+
ESPAsync_WiFiManager v1.6.2
33043325
ESP_DoubleResetDetector v1.1.1
33053326
Config File not found
33063327
Can't read Config File, using default values
@@ -3319,7 +3340,7 @@ Opening Configuration Portal. No timeout : DRD or No stored Credentials..
33193340
33203341
```
33213342
Starting Async_ConfigOnDRD_FS_MQTT_Ptr_Medium using LittleFS on ESP32_DEV
3322-
ESPAsync_WiFiManager v1.6.1
3343+
ESPAsync_WiFiManager v1.6.2
33233344
ESP_DoubleResetDetector v1.1.1
33243345
Config File not found
33253346
Can't read Config File, using default values
@@ -3407,7 +3428,7 @@ This is terminal debug output when running [Async_ConfigOnDRD_FS_MQTT_Ptr_Comple
34073428
34083429
```
34093430
Starting Async_ConfigOnDRD_FS_MQTT_Ptr_Complex using LittleFS on ESP8266_NODEMCU
3410-
ESPAsync_WiFiManager v1.6.1
3431+
ESPAsync_WiFiManager v1.6.2
34113432
ESP_DoubleResetDetector Version v1.1.1
34123433
{"AIO_SERVER_Label":"io.adafruit.com","AIO_SERVERPORT_Label":"1883","AIO_USERNAME_Label":"user_name","AIO_KEY_Label":"aio_key"}
34133434
Config File successfully parsed
@@ -3447,7 +3468,7 @@ TWWWW WTWWW
34473468
34483469
```
34493470
Starting Async_ConfigOnDRD_FS_MQTT_Ptr_Complex using LittleFS on ESP8266_NODEMCU
3450-
ESPAsync_WiFiManager v1.6.1
3471+
ESPAsync_WiFiManager v1.6.2
34513472
ESP_DoubleResetDetector Version v1.1.1
34523473
{"AIO_SERVER_Label":"io.adafruit.com","AIO_SERVERPORT_Label":"1883","AIO_USERNAME_Label":"user_name","AIO_KEY_Label":"aio_key"}
34533474
Config File successfully parsed
@@ -3537,7 +3558,7 @@ This is terminal debug output when running [Async_ConfigOnDoubleReset](examples/
35373558
35383559
```cpp
35393560
Starting Async_ConfigOnDoubleReset with DoubleResetDetect using SPIFFS on ESP32_DEV
3540-
ESPAsync_WiFiManager v1.6.1
3561+
ESPAsync_WiFiManager v1.6.2
35413562
ESP_DoubleResetDetector v1.1.1
35423563
[WM] RFC925 Hostname = ConfigOnDoubleReset
35433564
[WM] setSTAStaticIPConfig for USE_CONFIGURABLE_DNS
@@ -3596,7 +3617,7 @@ This is terminal debug output when running [Async_ConfigOnDoubleReset](examples/
35963617

35973618
```cpp
35983619
Starting Async_ConfigOnDoubleReset with DoubleResetDetect using LittleFS on ESP8266_NODEMCU
3599-
ESPAsync_WiFiManager v1.6.1
3620+
ESPAsync_WiFiManager v1.6.2
36003621
ESP_DoubleResetDetector v1.1.1
36013622
[WM] RFC925 Hostname = ConfigOnDoubleReset
36023623
[WM] setSTAStaticIPConfig for USE_CONFIGURABLE_DNS
@@ -3656,7 +3677,7 @@ This is terminal debug output when running [Async_ESP_FSWebServer_DRD](examples/
36563677
36573678
```cpp
36583679
Starting Async_ESP_FSWebServer_DRD using LittleFS on ESP8266_NODEMCU
3659-
ESPAsync_WiFiManager v1.6.1
3680+
ESPAsync_WiFiManager v1.6.2
36603681
ESP_DoubleResetDetector v1.1.1
36613682
Opening / directory
36623683
FS File: CanadaFlag_1.png, size: 40.25KB
@@ -3734,7 +3755,7 @@ This is terminal debug output when running [Async_ESP32_FSWebServer_DRD](example
37343755

37353756
```
37363757
Starting Async_ESP32_FSWebServer_DRD using LittleFS on ESP32_DEV
3737-
ESPAsync_WiFiManager v1.6.1
3758+
ESPAsync_WiFiManager v1.6.2
37383759
ESP_DoubleResetDetector v1.1.1
37393760
FS File: /CanadaFlag_1.png, size: 40.25KB
37403761
FS File: /CanadaFlag_2.png, size: 8.12KB
@@ -3874,6 +3895,10 @@ Submit issues to: [ESPAsync_WiFiManager issues](https://github.com/khoih-prog/ES
38743895

38753896
## Releases
38763897

3898+
### Releases v1.6.2
3899+
3900+
1. Fix example misleading messages. Check [**Minor: examples/Async_ESP32_FSWebServer/ wrongly uses FileFS.begin(true)** #47](https://github.com/khoih-prog/ESPAsync_WiFiManager/issues/47)
3901+
38773902
### Releases v1.6.1
38783903

38793904
1. Modify multiWiFi-related timings to work better with latest esp32 core v1.0.6
@@ -3974,7 +3999,7 @@ to use the better **asynchronous** [ESPAsyncWebServer](https://github.com/me-no-
39743999
9. Thanks to [Manuel Capilla](https://github.com/molillo) for reporting [ESP8266 Clear SSID and Pass](https://github.com/khoih-prog/ESPAsync_WiFiManager/issues/33) bug which is fixed and leading to v1.4.2.
39754000
10. Thanks to [David Gunzinger](https://github.com/pfy) for creating merged PR [It should be possible to start the ConfigPortal without connecting to WiFI #38](https://github.com/khoih-prog/ESPAsync_WiFiManager/pull/38).
39764001
11. Thanks to [Russell Jahn](https://github.com/russelljahn) for reporting [ESPAsync_WiFiManager::startConfigPortal() will cause a watchdog timeout when called from a higher-priority task. #39](https://github.com/khoih-prog/ESPAsync_WiFiManager/issues/39) leading to v1.5.0 and v1.6.0
3977-
4002+
12. Thanks to [robcazzaro](https://github.com/robcazzaro) for reporting [Minor: examples/Async_ESP32_FSWebServer/ wrongly uses FileFS.begin(true) #47](https://github.com/khoih-prog/ESPAsync_WiFiManager/issues/47) leading to v1.6.2
39784003

39794004

39804005
<table>
@@ -3996,7 +4021,8 @@ to use the better **asynchronous** [ESPAsyncWebServer](https://github.com/me-no-
39964021
</tr>
39974022
<tr>
39984023
<td align="center"><a href="https://github.com/russelljahn"><img src="https://github.com/russelljahn.png" width="100px;" alt="russelljahn"/><br /><sub><b>Russell Jahn</b></sub></a><br /></td>
3999-
</tr>
4024+
<td align="center"><a href="https://github.com/robcazzaro"><img src="https://github.com/robcazzaro.png" width="100px;" alt="robcazzaro"/><br /><sub><b>robcazzaro</b></sub></a><br /></td>
4025+
</tr>
40004026
</table>
40014027

40024028
---

examples/Async_AutoConnect/Async_AutoConnect.ino

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
1414
Built by Khoi Hoang https://github.com/khoih-prog/ESPAsync_WiFiManager
1515
Licensed under MIT license
16-
Version: 1.6.1
16+
Version: 1.6.2
1717
1818
Version Modified By Date Comments
1919
------- ----------- ---------- -----------
@@ -31,12 +31,13 @@
3131
1.5.0 K Hoang 13/02/2021 Add support to new ESP32-S2. Optimize code.
3232
1.6.0 K Hoang 25/02/2021 Fix WiFi Scanning bug.
3333
1.6.1 K Hoang 26/03/2021 Modify multiWiFi-related timings to work better with latest esp32 core v1.0.6
34+
1.6.2 K Hoang 08/04/2021 Fix example misleading messages.
3435
*****************************************************************************************************************************/
3536
#if !( defined(ESP8266) || defined(ESP32) )
3637
#error This code is intended to run on the ESP8266 or ESP32 platform! Please check your Tools->Board setting.
3738
#endif
3839

39-
#define ESP_ASYNC_WIFIMANAGER_VERSION_MIN_TARGET "ESPAsync_WiFiManager v1.6.1"
40+
#define ESP_ASYNC_WIFIMANAGER_VERSION_MIN_TARGET "ESPAsync_WiFiManager v1.6.2"
4041

4142
// Use from 0 to 4. Higher number, more debugging messages and memory usage.
4243
#define _ESPASYNC_WIFIMGR_LOGLEVEL_ 3
@@ -507,14 +508,30 @@ void setup()
507508
if (!FileFS.begin(true))
508509
#else
509510
if (!FileFS.begin())
510-
#endif
511+
#endif
511512
{
512-
Serial.print(FS_Name);
513-
Serial.println(F(" failed! AutoFormatting."));
514-
515513
#ifdef ESP8266
516514
FileFS.format();
517515
#endif
516+
517+
Serial.println(F("SPIFFS/LittleFS failed! Already tried formatting."));
518+
519+
if (!FileFS.begin())
520+
{
521+
// prevents debug info from the library to hide err message.
522+
delay(100);
523+
524+
#if USE_LITTLEFS
525+
Serial.println(F("LittleFS failed!. Please use SPIFFS or EEPROM. Stay forever"));
526+
#else
527+
Serial.println(F("SPIFFS failed!. Please use LittleFS or EEPROM. Stay forever"));
528+
#endif
529+
530+
while (true)
531+
{
532+
delay(1);
533+
}
534+
}
518535
}
519536

520537
unsigned long startedAt = millis();

examples/Async_AutoConnectWithFSParameters/Async_AutoConnectWithFSParameters.ino

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
1414
Built by Khoi Hoang https://github.com/khoih-prog/ESPAsync_WiFiManager
1515
Licensed under MIT license
16-
Version: 1.6.1
16+
Version: 1.6.2
1717
1818
Version Modified By Date Comments
1919
------- ----------- ---------- -----------
@@ -31,13 +31,14 @@
3131
1.5.0 K Hoang 13/02/2021 Add support to new ESP32-S2. Optimize code.
3232
1.6.0 K Hoang 25/02/2021 Fix WiFi Scanning bug.
3333
1.6.1 K Hoang 26/03/2021 Modify multiWiFi-related timings to work better with latest esp32 core v1.0.6
34+
1.6.2 K Hoang 08/04/2021 Fix example misleading messages.
3435
*****************************************************************************************************************************/
3536

3637
#if !( defined(ESP8266) || defined(ESP32) )
3738
#error This code is intended to run on the ESP8266 or ESP32 platform! Please check your Tools->Board setting.
3839
#endif
3940

40-
#define ESP_ASYNC_WIFIMANAGER_VERSION_MIN_TARGET "ESPAsync_WiFiManager v1.6.1"
41+
#define ESP_ASYNC_WIFIMANAGER_VERSION_MIN_TARGET "ESPAsync_WiFiManager v1.6.2"
4142

4243
// Use from 0 to 4. Higher number, more debugging messages and memory usage.
4344
#define _ESPASYNC_WIFIMGR_LOGLEVEL_ 3
@@ -715,14 +716,30 @@ void setup()
715716
if (!FileFS.begin(true))
716717
#else
717718
if (!FileFS.begin())
718-
#endif
719+
#endif
719720
{
720-
Serial.print(FS_Name);
721-
Serial.println(F(" failed! AutoFormatting."));
722-
723721
#ifdef ESP8266
724722
FileFS.format();
725723
#endif
724+
725+
Serial.println(F("SPIFFS/LittleFS failed! Already tried formatting."));
726+
727+
if (!FileFS.begin())
728+
{
729+
// prevents debug info from the library to hide err message.
730+
delay(100);
731+
732+
#if USE_LITTLEFS
733+
Serial.println(F("LittleFS failed!. Please use SPIFFS or EEPROM. Stay forever"));
734+
#else
735+
Serial.println(F("SPIFFS failed!. Please use LittleFS or EEPROM. Stay forever"));
736+
#endif
737+
738+
while (true)
739+
{
740+
delay(1);
741+
}
742+
}
726743
}
727744

728745
loadFileFSConfigFile();

examples/Async_AutoConnectWithFSParametersAndCustomIP/Async_AutoConnectWithFSParametersAndCustomIP.ino

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
1414
Built by Khoi Hoang https://github.com/khoih-prog/ESPAsync_WiFiManager
1515
Licensed under MIT license
16-
Version: 1.6.1
16+
Version: 1.6.2
1717
1818
Version Modified By Date Comments
1919
------- ----------- ---------- -----------
@@ -31,13 +31,14 @@
3131
1.5.0 K Hoang 13/02/2021 Add support to new ESP32-S2. Optimize code.
3232
1.6.0 K Hoang 25/02/2021 Fix WiFi Scanning bug.
3333
1.6.1 K Hoang 26/03/2021 Modify multiWiFi-related timings to work better with latest esp32 core v1.0.6
34+
1.6.2 K Hoang 08/04/2021 Fix example misleading messages.
3435
*****************************************************************************************************************************/
3536

3637
#if !( defined(ESP8266) || defined(ESP32) )
3738
#error This code is intended to run on the ESP8266 or ESP32 platform! Please check your Tools->Board setting.
3839
#endif
3940

40-
#define ESP_ASYNC_WIFIMANAGER_VERSION_MIN_TARGET "ESPAsync_WiFiManager v1.6.1"
41+
#define ESP_ASYNC_WIFIMANAGER_VERSION_MIN_TARGET "ESPAsync_WiFiManager v1.6.2"
4142

4243
// Use from 0 to 4. Higher number, more debugging messages and memory usage.
4344
#define _ESPASYNC_WIFIMGR_LOGLEVEL_ 3
@@ -553,7 +554,40 @@ void setup()
553554
//FileFS.format();
554555

555556
// Mount the filesystem
557+
// Format FileFS if not yet
558+
#ifdef ESP32
559+
bool result = FileFS.begin(true);
560+
561+
if (!result)
562+
#else
556563
bool result = FileFS.begin();
564+
565+
if (!result)
566+
#endif
567+
{
568+
#ifdef ESP8266
569+
FileFS.format();
570+
#endif
571+
572+
Serial.println(F("SPIFFS/LittleFS failed! Already tried formatting."));
573+
574+
if (!FileFS.begin())
575+
{
576+
// prevents debug info from the library to hide err message.
577+
delay(100);
578+
579+
#if USE_LITTLEFS
580+
Serial.println(F("LittleFS failed!. Please use SPIFFS or EEPROM. Stay forever"));
581+
#else
582+
Serial.println(F("SPIFFS failed!. Please use LittleFS or EEPROM. Stay forever"));
583+
#endif
584+
585+
while (true)
586+
{
587+
delay(1);
588+
}
589+
}
590+
}
557591

558592
#if USE_LITTLEFS
559593
Serial.print(F("\nLittleFS opened: "));

0 commit comments

Comments
 (0)