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

Commit 77baabe

Browse files
authored
v1.9.6 to fix compile error
### Releases v1.9.6 1. Fix compile error for ESP32 core v1.0.5-
1 parent bc845f5 commit 77baabe

File tree

34 files changed

+202
-161
lines changed

34 files changed

+202
-161
lines changed

README.md

+57-42
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ This [**ESPAsync_WiFiManager** library](https://github.com/khoih-prog/ESPAsync_W
200200
4. [`ESPAsyncWebServer v1.2.3+`](https://github.com/me-no-dev/ESPAsyncWebServer) for all ESP32/ESP8266-based boards. You have to use the latest [forked ESPAsyncWebServer](https://github.com/khoih-prog/ESPAsyncWebServer) if the PR [Fix compiler error for ESP32-C3 and mbed TLS v2.7.0+ #970](https://github.com/me-no-dev/ESPAsyncWebServer/pull/970) hasn't been merged.
201201
5. [`ESPAsyncTCP v1.2.2+`](https://github.com/me-no-dev/ESPAsyncTCP) for ESP8266-based boards.
202202
6. [`AsyncTCP v1.1.1+`](https://github.com/me-no-dev/AsyncTCP) for ESP32-based boards
203-
7. [`ESP_DoubleResetDetector v1.2.0+`](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.
203+
7. [`ESP_DoubleResetDetector v1.2.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.
204204
8. [`LittleFS_esp32 v1.0.6+`](https://github.com/lorol/LITTLEFS) for ESP32-based boards using LittleFS with ESP32 core v1.0.4-. 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 v1.0.6+](https://github.com/espressif/arduino-esp32/tree/master/libraries/LITTLEFS) and you don't need to install it if using ESP32 core v1.0.6+
205205

206206
---
@@ -378,13 +378,26 @@ then connect WebBrowser to configurable ConfigPortal IP address, default is 192.
378378
// Use LittleFS
379379
#include "FS.h"
380380

381-
// The library will be depreciated after being merged to future major Arduino esp32 core release 2.x
382-
// At that time, just remove this library inclusion
383-
#include <LITTLEFS.h> // https://github.com/lorol/LITTLEFS
381+
// Check cores/esp32/esp_arduino_version.h and cores/esp32/core_version.h
382+
//#if ( ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(2, 0, 0) ) //(ESP_ARDUINO_VERSION_MAJOR >= 2)
383+
#if ( defined(ESP_ARDUINO_VERSION_MAJOR) && (ESP_ARDUINO_VERSION_MAJOR >= 2) )
384+
#warning Using ESP32 Core 1.0.6 or 2.0.0+
385+
// The library has been merged into esp32 core from release 1.0.6
386+
#include <LittleFS.h>
387+
388+
FS* filesystem = &LittleFS;
389+
#define FileFS LittleFS
390+
#define FS_Name "LittleFS"
391+
#else
392+
#warning Using ESP32 Core 1.0.5-. You must install LITTLEFS library
393+
// The library has been merged into esp32 core from release 1.0.6
394+
#include <LITTLEFS.h> // https://github.com/lorol/LITTLEFS
395+
396+
FS* filesystem = &LITTLEFS;
397+
#define FileFS LITTLEFS
398+
#define FS_Name "LittleFS"
399+
#endif
384400

385-
FS* filesystem = &LITTLEFS;
386-
#define FileFS LITTLEFS
387-
#define FS_Name "LittleFS"
388401
#elif USE_SPIFFS
389402
#include <SPIFFS.h>
390403
FS* filesystem = &SPIFFS;
@@ -507,8 +520,9 @@ WM_Config WM_config;
507520
// Use LittleFS
508521
#include "FS.h"
509522

510-
// Check cores/esp32/esp_arduino_version.h
511-
#if ( ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(2, 0, 0) ) //(ESP_ARDUINO_VERSION_MAJOR >= 2)
523+
// Check cores/esp32/esp_arduino_version.h and cores/esp32/core_version.h
524+
//#if ( ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(2, 0, 0) ) //(ESP_ARDUINO_VERSION_MAJOR >= 2)
525+
#if ( defined(ESP_ARDUINO_VERSION_MAJOR) && (ESP_ARDUINO_VERSION_MAJOR >= 2) )
512526
#warning Using ESP32 Core 1.0.6 or 2.0.0+
513527
// The library has been merged into esp32 core from release 1.0.6
514528
#include <LittleFS.h>
@@ -517,7 +531,7 @@ WM_Config WM_config;
517531
#define FileFS LittleFS
518532
#define FS_Name "LittleFS"
519533
#else
520-
#warning Using ESP32 Core 1.0.4-. You must install LITTLEFS library
534+
#warning Using ESP32 Core 1.0.5-. You must install LITTLEFS library
521535
// The library has been merged into esp32 core from release 1.0.6
522536
#include <LITTLEFS.h> // https://github.com/lorol/LITTLEFS
523537
@@ -2095,7 +2109,7 @@ ESPAsync_wifiManager.setRemoveDuplicateAPs(false);
20952109
#error This code is intended to run on the ESP8266 or ESP32 platform! Please check your Tools->Board setting.
20962110
#endif
20972111

2098-
#define ESP_ASYNC_WIFIMANAGER_VERSION_MIN_TARGET "ESPAsync_WiFiManager v1.9.5"
2112+
#define ESP_ASYNC_WIFIMANAGER_VERSION_MIN_TARGET "ESPAsync_WiFiManager v1.9.6"
20992113

21002114
// Use from 0 to 4. Higher number, more debugging messages and memory usage.
21012115
#define _ESPASYNC_WIFIMGR_LOGLEVEL_ 3
@@ -2130,8 +2144,9 @@ ESPAsync_wifiManager.setRemoveDuplicateAPs(false);
21302144
// Use LittleFS
21312145
#include "FS.h"
21322146

2133-
// Check cores/esp32/esp_arduino_version.h
2134-
#if ( ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(2, 0, 0) ) //(ESP_ARDUINO_VERSION_MAJOR >= 2)
2147+
// Check cores/esp32/esp_arduino_version.h and cores/esp32/core_version.h
2148+
//#if ( ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(2, 0, 0) ) //(ESP_ARDUINO_VERSION_MAJOR >= 2)
2149+
#if ( defined(ESP_ARDUINO_VERSION_MAJOR) && (ESP_ARDUINO_VERSION_MAJOR >= 2) )
21352150
#warning Using ESP32 Core 1.0.6 or 2.0.0+
21362151
// The library has been merged into esp32 core from release 1.0.6
21372152
#include <LittleFS.h>
@@ -2140,7 +2155,7 @@ ESPAsync_wifiManager.setRemoveDuplicateAPs(false);
21402155
#define FileFS LittleFS
21412156
#define FS_Name "LittleFS"
21422157
#else
2143-
#warning Using ESP32 Core 1.0.4-. You must install LITTLEFS library
2158+
#warning Using ESP32 Core 1.0.5-. You must install LITTLEFS library
21442159
// The library has been merged into esp32 core from release 1.0.6
21452160
#include <LITTLEFS.h> // https://github.com/lorol/LITTLEFS
21462161
@@ -3460,8 +3475,8 @@ This is terminal debug output when running [Async_ConfigOnDRD_FS_MQTT_Ptr_Medium
34603475
34613476
```
34623477
Starting Async_ConfigOnDRD_FS_MQTT_Ptr_Medium using LittleFS on ESP32_DEV
3463-
ESPAsync_WiFiManager v1.9.5
3464-
ESP_DoubleResetDetector v1.2.0
3478+
ESPAsync_WiFiManager v1.9.6
3479+
ESP_DoubleResetDetector v1.2.1
34653480
Config File not found
34663481
Can't read Config File, using default values
34673482
LittleFS Flag read = 0xd0d01234
@@ -3479,8 +3494,8 @@ Opening Configuration Portal. No timeout : DRD or No stored Credentials..
34793494
34803495
```
34813496
Starting Async_ConfigOnDRD_FS_MQTT_Ptr_Medium using LittleFS on ESP32_DEV
3482-
ESPAsync_WiFiManager v1.9.5
3483-
ESP_DoubleResetDetector v1.2.0
3497+
ESPAsync_WiFiManager v1.9.6
3498+
ESP_DoubleResetDetector v1.2.1
34843499
Config File not found
34853500
Can't read Config File, using default values
34863501
LittleFS Flag read = 0xd0d04321
@@ -3567,8 +3582,8 @@ This is terminal debug output when running [Async_ConfigOnDRD_FS_MQTT_Ptr_Comple
35673582
35683583
```
35693584
Starting Async_ConfigOnDRD_FS_MQTT_Ptr_Complex using LittleFS on ESP8266_NODEMCU_ESP12E
3570-
ESPAsync_WiFiManager v1.9.5
3571-
ESP_DoubleResetDetector v1.2.0
3585+
ESPAsync_WiFiManager v1.9.6
3586+
ESP_DoubleResetDetector v1.2.1
35723587
{"AIO_SERVER_Label":"io.adafruit.com","AIO_SERVERPORT_Label":"1883","AIO_USERNAME_Label":"user_name","AIO_KEY_Label":"aio_key"}
35733588
Config File successfully parsed
35743589
LittleFS Flag read = 0xd0d04321
@@ -3607,8 +3622,8 @@ TWWWW WTWWW
36073622
36083623
```
36093624
Starting Async_ConfigOnDRD_FS_MQTT_Ptr_Complex using LittleFS on ESP8266_NODEMCU_ESP12E
3610-
ESPAsync_WiFiManager v1.9.5
3611-
ESP_DoubleResetDetector v1.2.0
3625+
ESPAsync_WiFiManager v1.9.6
3626+
ESP_DoubleResetDetector v1.2.1
36123627
{"AIO_SERVER_Label":"io.adafruit.com","AIO_SERVERPORT_Label":"1883","AIO_USERNAME_Label":"user_name","AIO_KEY_Label":"aio_key"}
36133628
Config File successfully parsed
36143629
LittleFS Flag read = 0xd0d01234
@@ -3697,8 +3712,8 @@ This is terminal debug output when running [Async_ConfigOnDoubleReset](examples/
36973712
36983713
```cpp
36993714
Starting Async_ConfigOnDoubleReset with DoubleResetDetect using SPIFFS on ESP32_DEV
3700-
ESPAsync_WiFiManager v1.9.5
3701-
ESP_DoubleResetDetector v1.2.0
3715+
ESPAsync_WiFiManager v1.9.6
3716+
ESP_DoubleResetDetector v1.2.1
37023717
[WM] RFC925 Hostname = ConfigOnDoubleReset
37033718
[WM] setSTAStaticIPConfig for USE_CONFIGURABLE_DNS
37043719
[WM] Set CORS Header to : Your Access-Control-Allow-Origin
@@ -3756,8 +3771,8 @@ This is terminal debug output when running [Async_ConfigOnDoubleReset](examples/
37563771

37573772
```cpp
37583773
Starting Async_ConfigOnDoubleReset with DoubleResetDetect using LittleFS on ESP8266_NODEMCU_ESP12E
3759-
ESPAsync_WiFiManager v1.9.5
3760-
ESP_DoubleResetDetector v1.2.0
3774+
ESPAsync_WiFiManager v1.9.6
3775+
ESP_DoubleResetDetector v1.2.1
37613776
[WM] RFC925 Hostname = ConfigOnDoubleReset
37623777
[WM] setSTAStaticIPConfig for USE_CONFIGURABLE_DNS
37633778
[WM] Set CORS Header to : Your Access-Control-Allow-Origin
@@ -3816,8 +3831,8 @@ This is terminal debug output when running [Async_ESP_FSWebServer_DRD](examples/
38163831
38173832
```cpp
38183833
Starting Async_ESP_FSWebServer_DRD using LittleFS on ESP8266_NODEMCU_ESP12E
3819-
ESPAsync_WiFiManager v1.9.5
3820-
ESP_DoubleResetDetector v1.2.0
3834+
ESPAsync_WiFiManager v1.9.6
3835+
ESP_DoubleResetDetector v1.2.1
38213836
Opening / directory
38223837
FS File: CanadaFlag_1.png, size: 40.25KB
38233838
FS File: CanadaFlag_2.png, size: 8.12KB
@@ -3894,8 +3909,8 @@ This is terminal debug output when running [Async_ESP32_FSWebServer_DRD](example
38943909

38953910
```
38963911
Starting Async_ESP32_FSWebServer_DRD using LittleFS on ESP32_DEV
3897-
ESPAsync_WiFiManager v1.9.5
3898-
ESP_DoubleResetDetector v1.2.0
3912+
ESPAsync_WiFiManager v1.9.6
3913+
ESP_DoubleResetDetector v1.2.1
38993914
FS File: /CanadaFlag_1.png, size: 40.25KB
39003915
FS File: /CanadaFlag_2.png, size: 8.12KB
39013916
FS File: /CanadaFlag_3.jpg, size: 10.89KB
@@ -4005,8 +4020,8 @@ This is terminal debug output when running [Async_ConfigOnDoubleReset](examples/
40054020

40064021
```
40074022
Starting Async_ConfigOnDoubleReset using LittleFS on ESP32S2_DEV
4008-
ESPAsync_WiFiManager v1.9.5
4009-
ESP_DoubleResetDetector v1.2.0
4023+
ESPAsync_WiFiManager v1.9.6
4024+
ESP_DoubleResetDetector v1.2.1
40104025
ESP Self-Stored: SSID = HueNet1, Pass = 12345678
40114026
[WM] * Add SSID = HueNet1 , PW = 12345678
40124027
Got ESP Self-Stored Credentials. Timeout 120s for Config Portal
@@ -4042,8 +4057,8 @@ This is terminal debug output when running [Async_ConfigOnDoubleReset_TZ](exampl
40424057

40434058
```
40444059
Starting Async_ConfigOnDoubleReset_TZ using LittleFS on ESP32_DEV
4045-
ESPAsync_WiFiManager v1.9.5
4046-
ESP_DoubleResetDetector v1.2.0
4060+
ESPAsync_WiFiManager v1.9.6
4061+
ESP_DoubleResetDetector v1.2.1
40474062
ESP Self-Stored: SSID = HueNet1, Pass = password
40484063
[WM] * Add SSID = HueNet1 , PW = password
40494064
Got ESP Self-Stored Credentials. Timeout 120s for Config Portal
@@ -4086,8 +4101,8 @@ Local Date/Time: Sat May 1 00:17:30 2021
40864101

40874102
```
40884103
Starting Async_ConfigOnDoubleReset_TZ using LittleFS on ESP32_DEV
4089-
ESPAsync_WiFiManager v1.9.5
4090-
ESP_DoubleResetDetector v1.2.0
4104+
ESPAsync_WiFiManager v1.9.6
4105+
ESP_DoubleResetDetector v1.2.1
40914106
ESP Self-Stored: SSID = HueNet1, Pass = password
40924107
[WM] * Add SSID = HueNet1 , PW = password
40934108
Got ESP Self-Stored Credentials. Timeout 120s for Config Portal
@@ -4133,8 +4148,8 @@ This is terminal debug output when running [Async_ESP_FSWebServer_DRD](examples/
41334148

41344149
```
41354150
Starting Async_ESP_FSWebServer_DRD using LittleFS on ESP8266_NODEMCU_ESP12E
4136-
ESPAsync_WiFiManager v1.9.5
4137-
ESP_DoubleResetDetector v1.2.0
4151+
ESPAsync_WiFiManager v1.9.6
4152+
ESP_DoubleResetDetector v1.2.1
41384153
Opening / directory
41394154
FS File: drd.dat, size: 4B
41404155
FS File: wifi_cred.dat, size: 334B
@@ -4206,8 +4221,8 @@ Local Date/Time: Sat May 1 03:12:54 2021
42064221

42074222
```
42084223
Starting Async_ESP_FSWebServer_DRD using LittleFS on ESP8266_NODEMCU_ESP12E
4209-
ESPAsync_WiFiManager v1.9.5
4210-
ESP_DoubleResetDetector v1.2.0
4224+
ESPAsync_WiFiManager v1.9.6
4225+
ESP_DoubleResetDetector v1.2.1
42114226
Opening / directory
42124227
FS File: drd.dat, size: 4B
42134228
FS File: wifi_cred.dat, size: 334B
@@ -4265,8 +4280,8 @@ This is terminal debug output when running [Async_ConfigOnDoubleReset_TZ](exampl
42654280

42664281
```
42674282
Starting Async_ConfigOnDoubleReset_TZ using SPIFFS on ESP32C3_DEV
4268-
ESPAsync_WiFiManager v1.9.5
4269-
ESP_DoubleResetDetector v1.2.0
4283+
ESPAsync_WiFiManager v1.9.6
4284+
ESP_DoubleResetDetector v1.2.1
42704285
ESP Self-Stored: SSID = HueNet1, Pass = 12345678
42714286
[WM] * Add SSID = HueNet1 , PW = 12345678
42724287
Got ESP Self-Stored Credentials. Timeout 120s for Config Portal

examples/Async_AutoConnect/Async_AutoConnect.ino

+5-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#error This code is intended to run on the ESP8266 or ESP32 platform! Please check your Tools->Board setting.
1919
#endif
2020

21-
#define ESP_ASYNC_WIFIMANAGER_VERSION_MIN_TARGET "ESPAsync_WiFiManager v1.9.2"
21+
#define ESP_ASYNC_WIFIMANAGER_VERSION_MIN_TARGET "ESPAsync_WiFiManager v1.9.6"
2222

2323
// Use from 0 to 4. Higher number, more debugging messages and memory usage.
2424
#define _ESPASYNC_WIFIMGR_LOGLEVEL_ 3
@@ -47,8 +47,9 @@
4747
// Use LittleFS
4848
#include "FS.h"
4949

50-
// Check cores/esp32/esp_arduino_version.h
51-
#if ( ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(2, 0, 0) ) //(ESP_ARDUINO_VERSION_MAJOR >= 2)
50+
// Check cores/esp32/esp_arduino_version.h and cores/esp32/core_version.h
51+
//#if ( ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(2, 0, 0) ) //(ESP_ARDUINO_VERSION_MAJOR >= 2)
52+
#if ( defined(ESP_ARDUINO_VERSION_MAJOR) && (ESP_ARDUINO_VERSION_MAJOR >= 2) )
5253
#warning Using ESP32 Core 1.0.6 or 2.0.0+
5354
// The library has been merged into esp32 core from release 1.0.6
5455
#include <LittleFS.h>
@@ -57,7 +58,7 @@
5758
#define FileFS LittleFS
5859
#define FS_Name "LittleFS"
5960
#else
60-
#warning Using ESP32 Core 1.0.4-. You must install LITTLEFS library
61+
#warning Using ESP32 Core 1.0.5-. You must install LITTLEFS library
6162
// The library has been merged into esp32 core from release 1.0.6
6263
#include <LITTLEFS.h> // https://github.com/lorol/LITTLEFS
6364

examples/Async_AutoConnectWithFSParameters/Async_AutoConnectWithFSParameters.ino

+5-4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#error This code is intended to run on the ESP8266 or ESP32 platform! Please check your Tools->Board setting.
2020
#endif
2121

22-
#define ESP_ASYNC_WIFIMANAGER_VERSION_MIN_TARGET "ESPAsync_WiFiManager v1.9.2"
22+
#define ESP_ASYNC_WIFIMANAGER_VERSION_MIN_TARGET "ESPAsync_WiFiManager v1.9.6"
2323

2424
// Use from 0 to 4. Higher number, more debugging messages and memory usage.
2525
#define _ESPASYNC_WIFIMGR_LOGLEVEL_ 3
@@ -50,8 +50,9 @@
5050
// Use LittleFS
5151
#include "FS.h"
5252

53-
// Check cores/esp32/esp_arduino_version.h
54-
#if ( ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(2, 0, 0) ) //(ESP_ARDUINO_VERSION_MAJOR >= 2)
53+
// Check cores/esp32/esp_arduino_version.h and cores/esp32/core_version.h
54+
//#if ( ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(2, 0, 0) ) //(ESP_ARDUINO_VERSION_MAJOR >= 2)
55+
#if ( defined(ESP_ARDUINO_VERSION_MAJOR) && (ESP_ARDUINO_VERSION_MAJOR >= 2) )
5556
#warning Using ESP32 Core 1.0.6 or 2.0.0+
5657
// The library has been merged into esp32 core from release 1.0.6
5758
#include <LittleFS.h>
@@ -60,7 +61,7 @@
6061
#define FileFS LittleFS
6162
#define FS_Name "LittleFS"
6263
#else
63-
#warning Using ESP32 Core 1.0.4-. You must install LITTLEFS library
64+
#warning Using ESP32 Core 1.0.5-. You must install LITTLEFS library
6465
// The library has been merged into esp32 core from release 1.0.6
6566
#include <LITTLEFS.h> // https://github.com/lorol/LITTLEFS
6667

examples/Async_AutoConnectWithFSParametersAndCustomIP/Async_AutoConnectWithFSParametersAndCustomIP.ino

+5-4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#error This code is intended to run on the ESP8266 or ESP32 platform! Please check your Tools->Board setting.
2020
#endif
2121

22-
#define ESP_ASYNC_WIFIMANAGER_VERSION_MIN_TARGET "ESPAsync_WiFiManager v1.9.2"
22+
#define ESP_ASYNC_WIFIMANAGER_VERSION_MIN_TARGET "ESPAsync_WiFiManager v1.9.6"
2323

2424
// Use from 0 to 4. Higher number, more debugging messages and memory usage.
2525
#define _ESPASYNC_WIFIMGR_LOGLEVEL_ 3
@@ -51,8 +51,9 @@
5151
// Use LittleFS
5252
#include "FS.h"
5353

54-
// Check cores/esp32/esp_arduino_version.h
55-
#if ( ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(2, 0, 0) ) //(ESP_ARDUINO_VERSION_MAJOR >= 2)
54+
// Check cores/esp32/esp_arduino_version.h and cores/esp32/core_version.h
55+
//#if ( ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(2, 0, 0) ) //(ESP_ARDUINO_VERSION_MAJOR >= 2)
56+
#if ( defined(ESP_ARDUINO_VERSION_MAJOR) && (ESP_ARDUINO_VERSION_MAJOR >= 2) )
5657
#warning Using ESP32 Core 1.0.6 or 2.0.0+
5758
// The library has been merged into esp32 core from release 1.0.6
5859
#include <LittleFS.h>
@@ -61,7 +62,7 @@
6162
#define FileFS LittleFS
6263
#define FS_Name "LittleFS"
6364
#else
64-
#warning Using ESP32 Core 1.0.4-. You must install LITTLEFS library
65+
#warning Using ESP32 Core 1.0.5-. You must install LITTLEFS library
6566
// The library has been merged into esp32 core from release 1.0.6
6667
#include <LITTLEFS.h> // https://github.com/lorol/LITTLEFS
6768

examples/Async_AutoConnectWithFeedback/Async_AutoConnectWithFeedback.ino

+5-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#error This code is intended to run on the ESP8266 or ESP32 platform! Please check your Tools->Board setting.
1919
#endif
2020

21-
#define ESP_ASYNC_WIFIMANAGER_VERSION_MIN_TARGET "ESPAsync_WiFiManager v1.9.2"
21+
#define ESP_ASYNC_WIFIMANAGER_VERSION_MIN_TARGET "ESPAsync_WiFiManager v1.9.6"
2222

2323
// Use from 0 to 4. Higher number, more debugging messages and memory usage.
2424
#define _ESPASYNC_WIFIMGR_LOGLEVEL_ 3
@@ -47,8 +47,9 @@
4747
// Use LittleFS
4848
#include "FS.h"
4949

50-
// Check cores/esp32/esp_arduino_version.h
51-
#if ( ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(2, 0, 0) ) //(ESP_ARDUINO_VERSION_MAJOR >= 2)
50+
// Check cores/esp32/esp_arduino_version.h and cores/esp32/core_version.h
51+
//#if ( ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(2, 0, 0) ) //(ESP_ARDUINO_VERSION_MAJOR >= 2)
52+
#if ( defined(ESP_ARDUINO_VERSION_MAJOR) && (ESP_ARDUINO_VERSION_MAJOR >= 2) )
5253
#warning Using ESP32 Core 1.0.6 or 2.0.0+
5354
// The library has been merged into esp32 core from release 1.0.6
5455
#include <LittleFS.h>
@@ -57,7 +58,7 @@
5758
#define FileFS LittleFS
5859
#define FS_Name "LittleFS"
5960
#else
60-
#warning Using ESP32 Core 1.0.4-. You must install LITTLEFS library
61+
#warning Using ESP32 Core 1.0.5-. You must install LITTLEFS library
6162
// The library has been merged into esp32 core from release 1.0.6
6263
#include <LITTLEFS.h> // https://github.com/lorol/LITTLEFS
6364

examples/Async_AutoConnectWithFeedbackLED/Async_AutoConnectWithFeedbackLED.ino

+5-4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#error This code is intended to run on the ESP8266 or ESP32 platform! Please check your Tools->Board setting.
2020
#endif
2121

22-
#define ESP_ASYNC_WIFIMANAGER_VERSION_MIN_TARGET "ESPAsync_WiFiManager v1.9.2"
22+
#define ESP_ASYNC_WIFIMANAGER_VERSION_MIN_TARGET "ESPAsync_WiFiManager v1.9.6"
2323

2424
// Use from 0 to 4. Higher number, more debugging messages and memory usage.
2525
#define _ESPASYNC_WIFIMGR_LOGLEVEL_ 3
@@ -48,8 +48,9 @@
4848
// Use LittleFS
4949
#include "FS.h"
5050

51-
// Check cores/esp32/esp_arduino_version.h
52-
#if ( ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(2, 0, 0) ) //(ESP_ARDUINO_VERSION_MAJOR >= 2)
51+
// Check cores/esp32/esp_arduino_version.h and cores/esp32/core_version.h
52+
//#if ( ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(2, 0, 0) ) //(ESP_ARDUINO_VERSION_MAJOR >= 2)
53+
#if ( defined(ESP_ARDUINO_VERSION_MAJOR) && (ESP_ARDUINO_VERSION_MAJOR >= 2) )
5354
#warning Using ESP32 Core 1.0.6 or 2.0.0+
5455
// The library has been merged into esp32 core from release 1.0.6
5556
#include <LittleFS.h>
@@ -58,7 +59,7 @@
5859
#define FileFS LittleFS
5960
#define FS_Name "LittleFS"
6061
#else
61-
#warning Using ESP32 Core 1.0.4-. You must install LITTLEFS library
62+
#warning Using ESP32 Core 1.0.5-. You must install LITTLEFS library
6263
// The library has been merged into esp32 core from release 1.0.6
6364
#include <LITTLEFS.h> // https://github.com/lorol/LITTLEFS
6465

0 commit comments

Comments
 (0)