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

Commit 3fd2374

Browse files
authored
v1.14.0 to fix ESP32 chipID
### Releases v1.14.0 1. Fix `ESP32 chipID`. Check [Help for storing variables in memory (non-volatile) #87](khoih-prog/ESP_WiFiManager#87 (comment)) 2. Add ESP32 `ESP_getChipOUI()` function 3. Display new info on Config Portal for ESP32 4. Remove dependency on `LittleFS_esp32` library to prevent PIO error when using new `ESP32 core v1.0.6+`
1 parent 5707085 commit 3fd2374

File tree

1 file changed

+57
-42
lines changed

1 file changed

+57
-42
lines changed

README.md

Lines changed: 57 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
## Table of Contents
1616

1717
* [Important Breaking Change from v1.10.0](#Important-Breaking-Change-from-v1100)
18+
* [For v1.14.0 and up](#For-v1140-and-up)
1819
* [For v1.11.0 and up](#For-v1110-and-up)
1920
* [For v1.10.0 only](#For-v1100-only)
2021
* [Why do we need this ESPAsync_WiFiManager library](#why-do-we-need-this-async-espasync_wifimanager-library)
@@ -150,6 +151,21 @@
150151

151152
### Important Breaking Change from v1.10.0
152153

154+
#### For v1.14.0 and up
155+
156+
ESP32 `chipID` is now correct and unique. The previous releases' 32-bit wrong `chipID` is mainly the 24-bit `Organizational Unique Identifier` (OUI) plus 8 bits from the correct chipID. That's why `ESP_getChipId()` function can return duplicated values if the boards are from the same batch.
157+
158+
For example
159+
160+
```
161+
Chip_ID_64 : 0x98F4AB085288
162+
chipOUI : 0x98F4AB
163+
chipId : 0x85288
164+
getEfuseMac: 0x885208ABF498
165+
```
166+
167+
---
168+
153169
#### For v1.11.0 and up
154170

155171
Please have a look at [HOWTO Fix `Multiple Definitions` Linker Error](#howto-fix-multiple-definitions-linker-error)
@@ -269,7 +285,7 @@ This [**ESPAsync_WiFiManager** library](https://github.com/khoih-prog/ESPAsync_W
269285
6. [`ESPAsyncTCP v1.2.2+`](https://github.com/me-no-dev/ESPAsyncTCP) for ESP8266-based boards.
270286
7. [`AsyncTCP v1.1.1+`](https://github.com/me-no-dev/AsyncTCP) for ESP32-based boards
271287
8. [`ESP_DoubleResetDetector v1.3.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.
272-
9. [`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+
288+
9. [`LittleFS_esp32 v1.0.6+`](https://github.com/lorol/LITTLEFS) for ESP32-based boards using LittleFS with ESP32 core **v1.0.5-**. 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+**
273289

274290
---
275291
---
@@ -486,8 +502,6 @@ then connect WebBrowser to configurable ConfigPortal IP address, default is 192.
486502
#endif
487503
//////
488504

489-
#define ESP_getChipId() ((uint32_t)ESP.getEfuseMac())
490-
491505
#define LED_BUILTIN 2
492506
#define LED_ON HIGH
493507
#define LED_OFF LOW
@@ -522,14 +536,6 @@ then connect WebBrowser to configurable ConfigPortal IP address, default is 192.
522536
#define LED_OFF HIGH
523537
#endif
524538

525-
// SSID and PW for Config Portal
526-
String ssid = "ESP_" + String(ESP_getChipId(), HEX);
527-
const char* password = "your_password";
528-
529-
// SSID and PW for your Router
530-
String Router_SSID;
531-
String Router_Pass;
532-
533539
// From v1.1.0
534540
// You only need to format the filesystem once
535541
//#define FORMAT_FILESYSTEM true
@@ -567,6 +573,15 @@ WM_Config WM_config;
567573

568574
#include <ESPAsync_WiFiManager.h> //https://github.com/khoih-prog/ESPAsync_WiFiManager
569575

576+
577+
// SSID and PW for Config Portal
578+
String ssid = "ESP_" + String(ESP_getChipId(), HEX);
579+
const char* password = "your_password";
580+
581+
// SSID and PW for your Router
582+
String Router_SSID;
583+
String Router_Pass;
584+
570585
#define HTTP_PORT 80
571586

572587
```
@@ -634,8 +649,6 @@ WM_Config WM_config;
634649
#endif
635650
//////
636651

637-
#define ESP_getChipId() ((uint32_t)ESP.getEfuseMac())
638-
639652
#define LED_BUILTIN 2
640653
#define LED_ON HIGH
641654
#define LED_OFF LOW
@@ -670,14 +683,6 @@ WM_Config WM_config;
670683
#define LED_OFF HIGH
671684
#endif
672685

673-
// SSID and PW for Config Portal
674-
String ssid = "ESP_" + String(ESP_getChipId(), HEX);
675-
const char* password = "your_password";
676-
677-
// SSID and PW for your Router
678-
String Router_SSID;
679-
String Router_Pass;
680-
681686
// From v1.1.0
682687
// You only need to format the filesystem once
683688
//#define FORMAT_FILESYSTEM true
@@ -779,6 +784,15 @@ IPAddress APStaticSN = IPAddress(255, 255, 255, 0);
779784

780785
#include <ESPAsync_WiFiManager.h> //https://github.com/khoih-prog/ESPAsync_WiFiManager
781786

787+
788+
// SSID and PW for Config Portal
789+
String ssid = "ESP_" + String(ESP_getChipId(), HEX);
790+
const char* password = "your_password";
791+
792+
// SSID and PW for your Router
793+
String Router_SSID;
794+
String Router_Pass;
795+
782796
#define HTTP_PORT 80
783797

784798
AsyncWebServer webServer(HTTP_PORT);
@@ -2180,7 +2194,7 @@ ESPAsync_wifiManager.setRemoveDuplicateAPs(false);
21802194
### Example [Async_ConfigOnDRD_FS_MQTT_Ptr](examples/Async_ConfigOnDRD_FS_MQTT_Ptr)
21812195

21822196

2183-
https://github.com/khoih-prog/ESPAsync_WiFiManager/blob/b85697b9ce88ae46aaa19dd3e23985dcbc7d5103/examples/Async_ConfigOnDRD_FS_MQTT_Ptr/Async_ConfigOnDRD_FS_MQTT_Ptr.ino#L17-L1408
2197+
https://github.com/khoih-prog/ESPAsync_WiFiManager/blob/5707085f3448146d59540d2903b33eb678b8f6a2/examples/Async_ConfigOnDRD_FS_MQTT_Ptr/Async_ConfigOnDRD_FS_MQTT_Ptr.ino#L17-L1408
21842198

21852199
---
21862200
---
@@ -2195,7 +2209,7 @@ This is terminal debug output when running [Async_ConfigOnDRD_FS_MQTT_Ptr_Medium
21952209

21962210
```
21972211
Starting Async_ConfigOnDRD_FS_MQTT_Ptr_Medium using LittleFS on ESP32_DEV
2198-
ESPAsync_WiFiManager v1.13.0
2212+
ESPAsync_WiFiManager v1.14.0
21992213
ESP_DoubleResetDetector v1.3.1
22002214
Config File not found
22012215
Can't read Config File, using default values
@@ -2214,7 +2228,7 @@ Opening Configuration Portal. No timeout : DRD or No stored Credentials..
22142228

22152229
```
22162230
Starting Async_ConfigOnDRD_FS_MQTT_Ptr_Medium using LittleFS on ESP32_DEV
2217-
ESPAsync_WiFiManager v1.13.0
2231+
ESPAsync_WiFiManager v1.14.0
22182232
ESP_DoubleResetDetector v1.3.1
22192233
Config File not found
22202234
Can't read Config File, using default values
@@ -2239,7 +2253,7 @@ Opening Configuration Portal. No timeout : DRD or No stored Credentials..
22392253
[WM] WiFi.waitForConnectResult Done
22402254
[WM] SET AP
22412255
[WM]
2242-
Configuring AP SSID = ESP_9ABF498
2256+
Configuring AP SSID = ESP_85288
22432257
[WM] AP PWD = your_password
22442258
[WM] AP Channel = 9
22452259
[WM] Custom AP IP/GW/Subnet = 192.168.100.1 192.168.100.1 255.255.255.0
@@ -2302,7 +2316,7 @@ This is terminal debug output when running [Async_ConfigOnDRD_FS_MQTT_Ptr_Comple
23022316

23032317
```
23042318
Starting Async_ConfigOnDRD_FS_MQTT_Ptr_Complex using LittleFS on ESP8266_NODEMCU_ESP12E
2305-
ESPAsync_WiFiManager v1.13.0
2319+
ESPAsync_WiFiManager v1.14.0
23062320
ESP_DoubleResetDetector v1.3.1
23072321
{"AIO_SERVER_Label":"io.adafruit.com","AIO_SERVERPORT_Label":"1883","AIO_USERNAME_Label":"user_name","AIO_KEY_Label":"aio_key"}
23082322
Config File successfully parsed
@@ -2342,7 +2356,7 @@ TWWWW WTWWW
23422356

23432357
```
23442358
Starting Async_ConfigOnDRD_FS_MQTT_Ptr_Complex using LittleFS on ESP8266_NODEMCU_ESP12E
2345-
ESPAsync_WiFiManager v1.13.0
2359+
ESPAsync_WiFiManager v1.14.0
23462360
ESP_DoubleResetDetector v1.3.1
23472361
{"AIO_SERVER_Label":"io.adafruit.com","AIO_SERVERPORT_Label":"1883","AIO_USERNAME_Label":"user_name","AIO_KEY_Label":"aio_key"}
23482362
Config File successfully parsed
@@ -2432,7 +2446,7 @@ This is terminal debug output when running [Async_ConfigOnDoubleReset](examples/
24322446

24332447
```cpp
24342448
Starting Async_ConfigOnDoubleReset with DoubleResetDetect using SPIFFS on ESP32_DEV
2435-
ESPAsync_WiFiManager v1.13.0
2449+
ESPAsync_WiFiManager v1.14.0
24362450
ESP_DoubleResetDetector v1.3.1
24372451
[WM] RFC925 Hostname = ConfigOnDoubleReset
24382452
[WM] setSTAStaticIPConfig for USE_CONFIGURABLE_DNS
@@ -2491,7 +2505,7 @@ This is terminal debug output when running [Async_ConfigOnDoubleReset](examples/
24912505
24922506
```cpp
24932507
Starting Async_ConfigOnDoubleReset with DoubleResetDetect using LittleFS on ESP8266_NODEMCU_ESP12E
2494-
ESPAsync_WiFiManager v1.13.0
2508+
ESPAsync_WiFiManager v1.14.0
24952509
ESP_DoubleResetDetector v1.3.1
24962510
[WM] RFC925 Hostname = ConfigOnDoubleReset
24972511
[WM] setSTAStaticIPConfig for USE_CONFIGURABLE_DNS
@@ -2551,7 +2565,7 @@ This is terminal debug output when running [Async_ESP_FSWebServer_DRD](examples/
25512565

25522566
```cpp
25532567
Starting Async_ESP_FSWebServer_DRD using LittleFS on ESP8266_NODEMCU_ESP12E
2554-
ESPAsync_WiFiManager v1.13.0
2568+
ESPAsync_WiFiManager v1.14.0
25552569
ESP_DoubleResetDetector v1.3.1
25562570
Opening / directory
25572571
FS File: CanadaFlag_1.png, size: 40.25KB
@@ -2629,7 +2643,7 @@ This is terminal debug output when running [Async_ESP32_FSWebServer_DRD](example
26292643
26302644
```
26312645
Starting Async_ESP32_FSWebServer_DRD using LittleFS on ESP32_DEV
2632-
ESPAsync_WiFiManager v1.13.0
2646+
ESPAsync_WiFiManager v1.14.0
26332647
ESP_DoubleResetDetector v1.3.1
26342648
FS File: /CanadaFlag_1.png, size: 40.25KB
26352649
FS File: /CanadaFlag_2.png, size: 8.12KB
@@ -2705,7 +2719,7 @@ Open Config Portal without Timeout: Double Reset Detected
27052719
[WM] WiFi.waitForConnectResult Done
27062720
[WM] SET AP
27072721
[WM]
2708-
Configuring AP SSID = ESP_9ABF498
2722+
Configuring AP SSID = ESP_85288
27092723
[WM] AP PWD = your_password
27102724
[WM] AP Channel = 8
27112725
[WM] Custom AP IP/GW/Subnet = 192.168.100.1 192.168.100.1 255.255.255.0
@@ -2740,7 +2754,7 @@ This is terminal debug output when running [Async_ConfigOnDoubleReset](examples/
27402754
27412755
```
27422756
Starting Async_ConfigOnDoubleReset using LittleFS on ESP32S2_DEV
2743-
ESPAsync_WiFiManager v1.13.0
2757+
ESPAsync_WiFiManager v1.14.0
27442758
ESP_DoubleResetDetector v1.3.1
27452759
ESP Self-Stored: SSID = HueNet1, Pass = 12345678
27462760
[WM] * Add SSID = HueNet1 , PW = 12345678
@@ -2777,7 +2791,7 @@ This is terminal debug output when running [Async_ConfigOnDoubleReset_TZ](exampl
27772791
27782792
```
27792793
Starting Async_ConfigOnDoubleReset_TZ using LittleFS on ESP32_DEV
2780-
ESPAsync_WiFiManager v1.13.0
2794+
ESPAsync_WiFiManager v1.14.0
27812795
ESP_DoubleResetDetector v1.3.1
27822796
ESP Self-Stored: SSID = HueNet1, Pass = password
27832797
[WM] * Add SSID = HueNet1 , PW = password
@@ -2794,7 +2808,7 @@ doubleResetDetected
27942808
Saving config file...
27952809
Saving config file OK
27962810
Open Config Portal without Timeout: Double Reset Detected
2797-
Starting configuration portal @ 192.168.4.1, SSID = ESP_9ABF498, PWD = MyESP_9ABF498
2811+
Starting configuration portal @ 192.168.4.1, SSID = ESP_85288, PWD = MyESP_85288
27982812
```
27992813
28002814
#### 8.2 Data Saved => Connect to WiFi with correct local time, TZ set and using NTP
@@ -2819,7 +2833,7 @@ Local Date/Time: Thu Feb 10 23:50:26 2022
28192833
28202834
```
28212835
Starting Async_ConfigOnDoubleReset_TZ using LittleFS on ESP32_DEV
2822-
ESPAsync_WiFiManager v1.13.0
2836+
ESPAsync_WiFiManager v1.14.0
28232837
ESP_DoubleResetDetector v1.3.1
28242838
ESP Self-Stored: SSID = HueNet1, Pass = password
28252839
[WM] * Add SSID = HueNet1 , PW = password
@@ -2868,7 +2882,7 @@ This is terminal debug output when running [Async_ESP_FSWebServer_DRD](examples/
28682882
28692883
```
28702884
Starting Async_ESP_FSWebServer_DRD using LittleFS on ESP8266_NODEMCU_ESP12E
2871-
ESPAsync_WiFiManager v1.13.0
2885+
ESPAsync_WiFiManager v1.14.0
28722886
ESP_DoubleResetDetector v1.3.1
28732887
Opening / directory
28742888
FS File: drd.dat, size: 4B
@@ -2941,7 +2955,7 @@ Local Date/Time: Thu Feb 10 23:16:26 2022
29412955
29422956
```
29432957
Starting Async_ESP_FSWebServer_DRD using LittleFS on ESP8266_NODEMCU_ESP12E
2944-
ESPAsync_WiFiManager v1.13.0
2958+
ESPAsync_WiFiManager v1.14.0
29452959
ESP_DoubleResetDetector v1.3.1
29462960
Opening / directory
29472961
FS File: drd.dat, size: 4B
@@ -3000,7 +3014,7 @@ This is terminal debug output when running [Async_ConfigOnDoubleReset_TZ](exampl
30003014
30013015
```
30023016
Starting Async_ConfigOnDoubleReset_TZ using SPIFFS on ESP32C3_DEV
3003-
ESPAsync_WiFiManager v1.13.0
3017+
ESPAsync_WiFiManager v1.14.0
30043018
ESP_DoubleResetDetector v1.3.1
30053019
ESP Self-Stored: SSID = HueNet1, Pass = 12345678
30063020
[WM] * Add SSID = HueNet1 , PW = 12345678
@@ -3046,7 +3060,7 @@ This is terminal debug output when running [Async_ConfigOnDoubleReset](examples/
30463060
30473061
```
30483062
Starting Async_ConfigOnDoubleReset using LittleFS on ESP32S3_DEV
3049-
ESPAsync_WiFiManager v1.13.0
3063+
ESPAsync_WiFiManager v1.14.0
30503064
ESP_DoubleResetDetector v1.3.1
30513065
ESP Self-Stored: SSID = HueNet1, Pass = password
30523066
[WM] * Add SSID = HueNet1 , PW = password
@@ -3089,7 +3103,7 @@ This is terminal debug output when running [Async_ConfigOnDoubleReset](examples/
30893103
30903104
```
30913105
Starting Async_ConfigOnDoubleReset using LittleFS on ESP32C3_DEV
3092-
ESPAsync_WiFiManager v1.13.0
3106+
ESPAsync_WiFiManager v1.14.0
30933107
ESP_DoubleResetDetector v1.3.1
30943108
ESP Self-Stored: SSID = HueNet1, Pass = password
30953109
[WM] * Add SSID = HueNet1 , PW = password
@@ -3182,7 +3196,7 @@ Submit issues to: [ESPAsync_WiFiManager issues](https://github.com/khoih-prog/ES
31823196
18. Thanks to [Dean Ott](https://github.com/deanjott) for reporting [WiFiManager works only on port 80 #75](https://github.com/khoih-prog/ESPAsync_WiFiManager/issues/75) and providing the solution leading to v1.9.7
31833197
19. Thanks to [Twaste](https://github.com/Twaste) for initiate the discussion in [Different behaviour using the src_cpp or src_h lib #80](https://github.com/khoih-prog/ESPAsync_WiFiManager/discussions/80) and providing the idea to the solution, to fix `multiple-definitions` linker error, leading to v1.10.0
31843198
20. Thanks to [Zongyi Yang](https://github.com/ZongyiYang) for creating merged PR [Fixes Captive Portal hanging depending on active core for AsyncTCP #100 #104](https://github.com/khoih-prog/ESPAsync_WiFiManager/pull/104).
3185-
3199+
21. Thanks to [MattiaCC93](https://github.com/MattiaCC93) for open discussion [Help for storing variables in memory (non-volatile) #87](https://github.com/khoih-prog/ESP_WiFiManager/discussions/87#discussioncomment-3593028) and report the ESP32 chipID bug, leading to v1.14.0.
31863200

31873201
<table>
31883202
<tr>
@@ -3208,6 +3222,7 @@ Submit issues to: [ESPAsync_WiFiManager issues](https://github.com/khoih-prog/ES
32083222
<td align="center"><a href="https://github.com/yiancar"><img src="https://github.com/yiancar.png" width="100px;" alt="yiancar"/><br /><sub><b>yiancar</b></sub></a><br /></td>
32093223
<td align="center"><a href="https://github.com/increpare"><img src="https://github.com/increpare.png" width="100px;" alt="increpare"/><br /><sub><b>Stephen Lavelle</b></sub></a><br /></td>
32103224
<td align="center"><a href="https://github.com/benpeart"><img src="https://github.com/benpeart.png" width="100px;" alt="benpeart"/><br /><sub><b>Ben Peart</b></sub></a><br /></td>
3225+
<td align="center"><a href="https://github.com/MattiaCC93"><img src="https://github.com/MattiaCC93.png" width="100px;" alt="MattiaCC93"/><br /><sub><b>MattiaCC93</b></sub></a><br /></td>
32113226
</tr>
32123227
<tr>
32133228
<td align="center"><a href="https://github.com/eth0up"><img src="https://github.com/eth0up.png" width="100px;" alt="eth0up"/><br /><sub><b>eth0up</b></sub></a><br /></td>

0 commit comments

Comments
 (0)