Skip to content
This repository was archived by the owner on Nov 25, 2021. It is now read-only.

Commit 6fc48fb

Browse files
authored
v1.6.0 to use ESP8266 core v3.0.0
### Major Releases v1.6.0 1. Fix AP connect issue caused by **breaking ESP8266 core v3.0.0**. Caused by multiple core changes, but the new solution results a better and faster connection to AP. 2. Fix SSL issue caused by breaking ESP8266 core v3.0.0. Now the better **BearSSL** is used in both ESP32 and ESP8266 to replace the ESP8266 deprecated `axTLS`. Check [Remove axTLS from code and documentation #7437](esp8266/Arduino#7437) 3. Fix the `BLYNK_INFO_DEVICE`displaying the generic ESP8266 board with Blynk logo. Caused by new ESP8266 core changes of `build.board`. For example from `ESP8266_NODEMCU` in core v2.7.4 to `ESP8266_NODEMCU_ESP12E` in core v3.0.0 4. Fix many warnings only displayed in new core ESP8266 v3.0.0 5. Make code compatible for either new ESP8266 core v3.0.0+ or ealier cores v2.7.4-
1 parent a757f9f commit 6fc48fb

File tree

26 files changed

+587
-125
lines changed

26 files changed

+587
-125
lines changed

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ If you don't find anything, please [open a new issue](https://github.com/khoih-p
1515
Please ensure to specify the following:
1616

1717
* Arduino IDE version (e.g. 1.8.13) or Platform.io version
18-
* `ESP8266` or `ESP32` Core Version (e.g. ESP8266 core v2.7.4 or ESP32 v1.0.6)
18+
* `ESP8266` or `ESP32` Core Version (e.g. ESP8266 core v3.0.0 or ESP32 v1.0.6)
1919
* Contextual information (e.g. what you were trying to achieve)
2020
* Simplest possible steps to reproduce
2121
* Anything that might be relevant in your opinion, such as:
@@ -26,10 +26,10 @@ Please ensure to specify the following:
2626
### Example
2727

2828
```
29-
Arduino IDE version: 1.8.13
30-
ESP8266 Core Version 2.7.4
29+
Arduino IDE version: v1.8.13
30+
ESP8266 Core Version v3.0.0
3131
OS: Ubuntu 20.04 LTS
32-
Linux Inspiron 5.4.0-72-generic #80-Ubuntu SMP Mon Apr 12 17:35:00 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
32+
Linux Inspiron 5.4.0-73-generic #82-Ubuntu SMP Wed Apr 14 17:39:42 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
3333
3434
Context:
3535
The board couldn't autoreconnect to Local Blynk Server after router power recycling.

README.md

Lines changed: 137 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,10 @@ This is a Blynk and WiFiManager Library for configuring/auto(re)connecting **ESP
174174

175175
This library is designed to help you to eliminate `hardcoding` your Wifi and Blynk credentials for ESP8266 and ESP32 (with/without SSL), and updating/reflashing every time you need to change them.
176176

177+
With version `v1.6.0` or later, you can use:
178+
179+
1. `New ESP8266 core v3.0.0`
180+
177181
With version `v1.1.0` or later, you can use:
178182

179183
1. `LittleFS for ESP32`
@@ -203,6 +207,14 @@ This [**Blynk_WM** library](https://github.com/khoih-prog/Blynk_WM) currently su
203207

204208
## Changelog
205209

210+
### Major Releases v1.6.0
211+
212+
1. Fix AP connect issue caused by **breaking ESP8266 core v3.0.0**. Caused by multiple core changes, but the new solution results a better and faster connection to AP.
213+
2. Fix SSL issue caused by breaking ESP8266 core v3.0.0. Now the better **BearSSL** is used in both ESP32 and ESP8266 to replace the ESP8266 deprecated `axTLS`. Check [Remove axTLS from code and documentation #7437](https://github.com/esp8266/Arduino/pull/7437)
214+
3. Fix the `BLYNK_INFO_DEVICE`displaying the generic ESP8266 board with Blynk logo. Caused by new ESP8266 core changes of `build.board`. For example from `ESP8266_NODEMCU` in core v2.7.4 to `ESP8266_NODEMCU_ESP12E` in core v3.0.0
215+
4. Fix many warnings only displayed in new core ESP8266 v3.0.0
216+
5. Make code compatible for either new ESP8266 core v3.0.0+ or ealier cores v2.7.4-
217+
206218
### Releases v1.5.0
207219

208220
1. Fix bug.
@@ -308,10 +320,10 @@ Thanks to [Thor Johnson](https://github.com/thorathome) to test, suggest and enc
308320
## Prerequisites
309321

310322
1. [`Arduino IDE 1.8.13+`](https://www.arduino.cc/en/Main/Software)
311-
2. [`Blynk library 0.6.1+`](https://github.com/blynkkk/blynk-library/releases). [![Latest release](https://img.shields.io/github/release/blynkkk/blynk-library.svg)](https://github.com/blynkkk/blynk-library/releases/latest/)
323+
2. [`Blynk library 0.6.1+`](https://github.com/blynkkk/blynk-library/releases). [![Latest release](https://img.shields.io/github/release/blynkkk/blynk-library.svg)](https://github.com/blynkkk/blynk-library/releases/latest/). Never use the `Blynk beta` versions.
312324
3. [`ESP32 Core 1.0.6+`](https://github.com/espressif/arduino-esp32) for ESP32-based boards. [![Latest release](https://img.shields.io/github/release/espressif/arduino-esp32.svg)](https://github.com/espressif/arduino-esp32/releases/latest/)
313325
4. [`ESP32-S2/C3 Core 1.0.6+`](https://github.com/espressif/arduino-esp32) for ESP32-S2/C3-based boards. Must follow [HOWTO Install esp32 core for ESP32-S2 (Saola, AI-Thinker ESP-12K) and ESP32-C3 boards into Arduino IDE](#howto-install-esp32-core-for-esp32-s2-saola-ai-thinker-esp-12k-and-esp32-c3-boards-into-arduino-ide).
314-
5. [`ESP8266 Core 2.7.4+`](https://github.com/esp8266/Arduino) for ESP8266-based boards. [![Latest release](https://img.shields.io/github/release/esp8266/Arduino.svg)](https://github.com/esp8266/Arduino/releases/latest/). To use ESP8266 core 2.7.1+ for LittleFS.
326+
5. [`ESP8266 Core 3.0.0+`](https://github.com/esp8266/Arduino) for ESP8266-based boards. [![Latest release](https://img.shields.io/github/release/esp8266/Arduino.svg)](https://github.com/esp8266/Arduino/releases/latest/). To use ESP8266 core 2.7.1+ for LittleFS.
315327
6. [`ESP_DoubleResetDetector library 1.1.1+`](https://github.com/khoih-prog/ESP_DoubleResetDetector) to use DRD feature. To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/ESP_DoubleResetDetector.svg?)](https://www.ardu-badge.com/ESP_DoubleResetDetector).
316328
7. [`ESP_MultiResetDetector library 1.1.1+`](https://github.com/khoih-prog/ESP_MultiResetDetector) to use MRD feature. To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/ESP_MultiResetDetector.svg?)](https://www.ardu-badge.com/ESP_MultiResetDetector).
317329
8. [`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 v1.0.6](https://github.com/espressif/arduino-esp32/tree/master/libraries/LITTLEFS).
@@ -1668,7 +1680,8 @@ The following is the sample terminal output when running example [ESP8266WM_MRD_
16681680

16691681
```
16701682
Starting ESP8266WM_MRD_Config using LittleFS with SSL on ESP8266_NODEMCU
1671-
Blynk_WM SSL for ESP8266 v1.5.0
1683+
Blynk_WM SSL for ESP8266 v1.6.0
1684+
ESP8266 core v2.7.4
16721685
ESP_MultiResetDetector v1.1.1
16731686
LittleFS Flag read = 0xFFFD0002
16741687
multiResetDetectorFlag = 0xFFFD0002
@@ -1748,7 +1761,8 @@ BBBBBB
17481761

17491762
```
17501763
Starting ESP8266WM_MRD_Config using LittleFS with SSL on ESP8266_NODEMCU
1751-
Blynk_WM SSL for ESP8266 v1.5.0
1764+
Blynk_WM SSL for ESP8266 v1.6.0
1765+
ESP8266 core v2.7.4
17521766
ESP_MultiResetDetector v1.1.1
17531767
LittleFS Flag read = 0xFFFC0003
17541768
multiResetDetectorFlag = 0xFFFC0003
@@ -1810,7 +1824,8 @@ The following is the sample terminal output when running example [DHT11ESP8266_S
18101824

18111825
```
18121826
Starting DHT11ESP8266_SSL using LittleFS with SSL on ESP8266_NODEMCU
1813-
Blynk_WM SSL for ESP8266 v1.5.0
1827+
Blynk_WM SSL for ESP8266 v1.6.0
1828+
ESP8266 core v2.7.4
18141829
ESP_DoubleResetDetector v1.1.1
18151830
[293] Hostname=ESP8266-DHT11-SSL
18161831
[316] LoadCfgFile
@@ -1868,7 +1883,7 @@ The following is the sample terminal output when running example [ESP32WM_MRD_Co
18681883

18691884
```
18701885
Starting ESP32WM_MRD_Config using LITTLEFS without SSL on ESP32_DEV
1871-
Blynk_WM for ESP32 v1.5.0
1886+
Blynk_WM for ESP32 v1.6.0
18721887
ESP_MultiResetDetector v1.1.1
18731888
LittleFS Flag read = 0xFFFE0001
18741889
multiResetDetectorFlag = 0xFFFE0001
@@ -1945,7 +1960,7 @@ BBBBBB
19451960

19461961
```
19471962
Starting ESP32WM_MRD_Config using LITTLEFS without SSL on ESP32_DEV
1948-
Blynk_WM for ESP32 v1.5.0
1963+
Blynk_WM for ESP32 v1.6.0
19491964
ESP_MultiResetDetector v1.1.1
19501965
LittleFS Flag read = 0xFFFC0003
19511966
multiResetDetectorFlag = 0xFFFC0003
@@ -2003,7 +2018,7 @@ ets Jun 8 2016 00:22:57
20032018

20042019
```
20052020
Starting ESP32WM_MRD_Config using LITTLEFS without SSL on ESP32_DEV
2006-
Blynk_WM for ESP32 v1.5.0
2021+
Blynk_WM for ESP32 v1.6.0
20072022
ESP_MultiResetDetector v1.1.1
20082023
LittleFS Flag read = 0xFFFE0001
20092024
multiResetDetectorFlag = 0xFFFE0001
@@ -2127,7 +2142,7 @@ The following is the sample terminal output when running example [DHT11ESP8266_S
21272142

21282143
```
21292144
Starting DHT11ESP32_SSL using LITTLEFS with SSL on ESP32_DEV
2130-
Blynk_WM SSL for ESP32 v1.5.0
2145+
Blynk_WM SSL for ESP32 v1.6.0
21312146
ESP_DoubleResetDetector v1.1.1
21322147
[346] Hostname=ESP32-DHT11-SSL
21332148
[385] LoadCfgFile
@@ -2191,7 +2206,8 @@ Blynk.resetAndEnterConfigPortal();
21912206

21922207
```
21932208
Starting ESP8266WM_MRD_ForcedConfig using LittleFS without SSL on ESP8266_NODEMCU
2194-
Blynk_WM for ESP8266 v1.5.0
2209+
Blynk_WM for ESP8266 v1.6.0
2210+
ESP8266 core v2.7.4
21952211
ESP_MultiResetDetector v1.1.1
21962212
LittleFS Flag read = 0xFFFE0001
21972213
multiResetDetectorFlag = 0xFFFE0001
@@ -2277,7 +2293,8 @@ Non-Persistent CP will be removed after first reset, even you didn't enter the C
22772293

22782294
```
22792295
Starting ESP8266WM_MRD_ForcedConfig using LittleFS without SSL on ESP8266_NODEMCU
2280-
Blynk_WM for ESP8266 v1.5.0
2296+
Blynk_WM for ESP8266 v1.6.0
2297+
ESP8266 core v2.7.4
22812298
ESP_MultiResetDetector v1.1.1
22822299
LittleFS Flag read = 0xFFFE0001
22832300
multiResetDetectorFlag = 0xFFFE0001
@@ -2359,7 +2376,8 @@ Blynk.resetAndEnterConfigPortalPersistent();
23592376

23602377
```
23612378
Starting ESP8266WM_MRD_ForcedConfig using LittleFS without SSL on ESP8266_NODEMCU
2362-
Blynk_WM for ESP8266 v1.5.0
2379+
Blynk_WM for ESP8266 v1.6.0
2380+
ESP8266 core v2.7.4
23632381
ESP_MultiResetDetector v1.1.1
23642382
LittleFS Flag read = 0xFFFE0001
23652383
multiResetDetectorFlag = 0xFFFE0001
@@ -2446,7 +2464,8 @@ Persistent CP will remain after resets. The only way to get rid of Config Portal
24462464

24472465
```
24482466
Starting ESP8266WM_MRD_ForcedConfig using LittleFS without SSL on ESP8266_NODEMCU
2449-
Blynk_WM for ESP8266 v1.5.0
2467+
Blynk_WM for ESP8266 v1.6.0
2468+
ESP8266 core v2.7.4
24502469
ESP_MultiResetDetector v1.1.1
24512470
LittleFS Flag read = 0xFFFE0001
24522471
multiResetDetectorFlag = 0xFFFE0001
@@ -2514,7 +2533,8 @@ The following is the sample terminal output when running example [ESP8266WM_MRD_
25142533

25152534
```
25162535
Starting ESP8266WM_MRD_ForcedConfig using LittleFS with SSL on ESP8266_NODEMCU
2517-
Blynk_WM SSL for ESP8266 v1.5.0
2536+
Blynk_WM SSL for ESP8266 v1.6.0
2537+
ESP8266 core v2.7.4
25182538
ESP_MultiResetDetector v1.1.1
25192539
[267] Set CustomsStyle to : <style>div,input{padding:5px;font-size:1em;}input{width:95%;}body{text-align: center;}button{background-color:blue;color:white;line-height:2.4rem;font-size:1.2rem;width:100%;}fieldset{border-radius:0.3rem;margin:0px;}</style>
25202540
[289] Set CustomsHeadElement to : <style>html{filter: invert(10%);}</style>
@@ -2602,7 +2622,7 @@ The following is the sample terminal output when running example [ESP32WM_MRD_Co
26022622

26032623
```
26042624
Starting ESP32WM_MRD_Config using LITTLEFS with SSL on ESP32S2_DEV
2605-
Blynk_WM SSL for ESP32 v1.5.0
2625+
Blynk_WM SSL for ESP32 v1.6.0
26062626
ESP_MultiResetDetector v1.1.1
26072627
[134394] Set CustomsStyle to : <style>div,input{padding:5px;font-size:1em;}input{width:95%;}body{text-align: center;}button{background-color:blue;color:white;line-height:2.4rem;font-size:1.2rem;width:100%;}fieldset{border-radius:0.3rem;margin:0px;}</style>
26082628
[134417] Set CustomsHeadElement to : <style>html{filter: invert(10%);}</style>
@@ -2691,7 +2711,7 @@ The following is the sample terminal output when running example [ESP32WM_MRD_Fo
26912711

26922712
```
26932713
Starting ESP32WM_MRD_ForcedConfig using LITTLEFS with SSL on ESP32_DEV
2694-
Blynk_WM SSL for ESP32 v1.5.0
2714+
Blynk_WM SSL for ESP32 v1.6.0
26952715
ESP_MultiResetDetector v1.1.1
26962716
[228] Set CustomsStyle to : <style>div,input{padding:5px;font-size:1em;}input{width:95%;}body{text-align: center;}button{background-color:blue;color:white;line-height:2.4rem;font-size:1.2rem;width:100%;}fieldset{border-radius:0.3rem;margin:0px;}</style>
26972717
[250] Set CustomsHeadElement to : <style>html{filter: invert(10%);}</style>
@@ -2814,7 +2834,7 @@ Pubs Topics = default-mqtt-PubTopic
28142834

28152835
```
28162836
Starting ESP32WM_MRD_ForcedConfig using LITTLEFS with SSL on ESP32_DEV
2817-
Blynk_WM SSL for ESP32 v1.5.0
2837+
Blynk_WM SSL for ESP32 v1.6.0
28182838
ESP_MultiResetDetector v1.1.1
28192839
[227] Set CustomsStyle to : <style>div,input{padding:5px;font-size:1em;}input{width:95%;}body{text-align: center;}button{background-color:blue;color:white;line-height:2.4rem;font-size:1.2rem;width:100%;}fieldset{border-radius:0.3rem;margin:0px;}</style>
28202840
[249] Set CustomsHeadElement to : <style>html{filter: invert(10%);}</style>
@@ -2894,6 +2914,96 @@ Pubs Topics = default-mqtt-PubTopic
28942914
RBRBRBRBRBRBRBRB
28952915
```
28962916

2917+
---
2918+
2919+
### 10. ESP8266WM_MRD_Config using LITTLEFS with SSL on ESP8266_NODEMCU_ESP12E using new ESP8266 core v3.0.0
2920+
2921+
The following is the sample terminal output when running example [ESP8266WM_MRD_Config](examples/ESP8266WM_MRD_Config) on **ESP8266_NODEMCU_ESP12E** using new **ESP8266 core v3.0.0**
2922+
2923+
2924+
```
2925+
Starting ESP8266WM_MRD_Config using LittleFS with SSL on ESP8266_NODEMCU_ESP12E
2926+
ESP8266 core v3.0.0
2927+
Blynk_WM SSL for ESP8266 v1.6.0
2928+
ESP_MultiResetDetector v1.1.1
2929+
[274] Set CustomsStyle to : <style>div,input{padding:5px;font-size:1em;}input{width:95%;}body{text-align: center;}button{background-color:blue;color:white;line-height:2.4rem;font-size:1.2rem;width:100%;}fieldset{border-radius:0.3rem;margin:0px;}</style>
2930+
[296] Set CustomsHeadElement to : <style>html{filter: invert(10%);}</style>
2931+
[303] Set CORS Header to : Your Access-Control-Allow-Origin
2932+
LittleFS Flag read = 0xFFFE0001
2933+
multiResetDetectorFlag = 0xFFFE0001
2934+
lowerBytes = 0x0001, upperBytes = 0x0001
2935+
No multiResetDetected, number of times = 1
2936+
LittleFS Flag read = 0xFFFE0001
2937+
Saving config file...
2938+
Saving config file OK
2939+
[337] Hostname=8266-Master-Controller
2940+
[349] LoadCfgFile
2941+
[349] OK
2942+
[349] ======= Start Stored Config Data =======
2943+
[349] Hdr=SSL_ESP8266,BrdName=ESP32
2944+
[350] SSID=HueNet1,PW=password
2945+
[351] SSID1=HueNet2,PW1=password
2946+
[354] Server=account.duckdns.org,Token=token
2947+
[360] Server1=account.duckdns.org,Token1=token1
2948+
[366] Port=9443
2949+
[368] ======= End Config Data =======
2950+
[371] CCSum=0x3473,RCSum=0x3473
2951+
[376] LoadCredFile
2952+
[376] CrR:pdata=default-mqtt-server,len=34
2953+
[380] CrR:pdata=1883,len=6
2954+
[382] CrR:pdata=default-mqtt-username,len=34
2955+
[386] CrR:pdata=default-mqtt-password,len=34
2956+
[390] CrR:pdata=default-mqtt-SubTopic,len=34
2957+
[394] CrR:pdata=default-mqtt-PubTopic,len=34
2958+
[398] OK
2959+
[399] CrCCsum=0x29a6,CrRCsum=0x29a6
2960+
[402] Valid Stored Dynamic Data
2961+
[405] Hdr=SSL_ESP8266,BrdName=ESP32
2962+
[408] SSID=HueNet1,PW=password
2963+
[411] SSID1=HueNet2,PW1=password
2964+
[414] Server=account.duckdns.org,Token=token
2965+
[420] Server1=account.duckdns.org,Token1=token1
2966+
[426] Port=9443
2967+
[428] ======= End Config Data =======
2968+
[431] Check if isForcedCP
2969+
[436] LoadCPFile
2970+
[436] OK
2971+
[436] bg: noConfigPortal = true
2972+
[439] Connecting MultiWifi...
2973+
[5576] WiFi connected after time: 1
2974+
[5577] SSID: HueNet1, RSSI = -43
2975+
[5577] Channel: 2, IP address: 192.168.2.135
2976+
[5577] bg: WiFi OK. Try Blynk
2977+
[5578]
2978+
___ __ __
2979+
/ _ )/ /_ _____ / /__
2980+
/ _ / / // / _ \/ '_/
2981+
/____/_/\_, /_//_/_/\_\
2982+
/___/ v0.6.1 on ESP8266_NODEMCU_ESP12E
2983+
2984+
[6592] NTP time: Thu May 20 02:13:51 2021
2985+
[6624] BlynkArduinoClient.connect: Connecting to account.duckdns.org:9443
2986+
[7360] Certificate OK
2987+
[7387] Ready (ping: 20ms).
2988+
[7457] Connected to Blynk Server = account.duckdns.org, Token = token
2989+
[7458] bg: WiFi+Blynk OK
2990+
2991+
Blynk ESP8288 using LittleFS connected.
2992+
Board Name : ESP8266
2993+
B
2994+
Your stored Credentials :
2995+
MQTT Server = default-mqtt-server
2996+
Port = 1883
2997+
MQTT UserName = default-mqtt-username
2998+
MQTT PWD = default-mqtt-password
2999+
Subs Topics = default-mqtt-SubTopic
3000+
Pubs Topics = default-mqtt-PubTopic
3001+
Stop multiResetDetecting
3002+
Saving config file...
3003+
Saving config file OK
3004+
BBBBBRBBBB BBRBBBBBBRBB BBBBRBBBBBB
3005+
```
3006+
28973007
---
28983008
---
28993009

@@ -2932,6 +3042,14 @@ Sometimes, the library will only work if you update the board core to the latest
29323042

29333043
## Releases
29343044

3045+
### Major Releases v1.6.0
3046+
3047+
1. Fix AP connect issue caused by breaking ESP8266 core v3.0.0. Caused by multiple core changes, but the new solution results a better and faster connection to AP.
3048+
2. Fix SSL issue caused by breaking ESP8266 core v3.0.0. Now the better **BearSSL** is used in both ESP32 and ESP8266 to replace the ESP8266 deprecated `axTLS`. Check [Remove axTLS from code and documentation #7437](https://github.com/esp8266/Arduino/pull/7437)
3049+
3. Fix the `BLYNK_INFO_DEVICE`displaying the generic ESP8266 board with Blynk logo. Caused by new ESP8266 core changes of `build.board`. For example from `ESP8266_NODEMCU` in core v2.7.4 to `ESP8266_NODEMCU_ESP12E` in core v3.0.0
3050+
4. Fix many warnings only displayed in new core ESP8266 v3.0.0
3051+
5. Make code compatible for either new ESP8266 core v3.0.0+ or ealier cores v2.7.4-
3052+
29353053
### Releases v1.5.0
29363054

29373055
1. Fix bug.
@@ -3149,6 +3267,8 @@ Submit issues to: [Blynk_WM issues](https://github.com/khoih-prog/Blynk_WM/issue
31493267
31. Permit optionally inputting one set of WiFi SSID/PWD by using `REQUIRE_ONE_SET_SSID_PW == true`
31503268
32. Enforce WiFi PWD minimum length of 8 chars
31513269
33. Enable **scan of WiFi networks** for selection in Configuration Portal
3270+
34. Drastically update code to work with either ESP8266 new breaking ESP8266 core v3.0.0 or old core ESP8266 v2.7.4-
3271+
35. Make SSL working using `BearSSL`, not deprecated `axTLS`
31523272

31533273
---
31543274
---

examples/AM2315_ESP32_SSL/AM2315_ESP32_SSL.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Forked from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases
88
Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WM
99
Licensed under MIT license
10-
Version: 1.5.0
10+
Version: 1.6.0
1111
1212
Version Modified By Date Comments
1313
------- ----------- ---------- -----------
@@ -38,6 +38,7 @@
3838
1.3.1 K Hoang 24/04/2021 Fix issue of custom Blynk port (different from 8080 or 9443) not working on ESP32
3939
1.4.0 K Hoang 24/04/2021 Enable scan of WiFi networks for selection in Configuration Portal
4040
1.5.0 K Hoang 25/04/2021 Fix bug. Optimize and sync with Blynk_Async_WM library v1.5.0
41+
1.6.0 K Hoang 19/05/2021 Fix AP connect and SSL issues caused by breaking ESP8266 core v3.0.0
4142
*****************************************************************************************************************************/
4243

4344
#include "defines.h"

examples/AM2315_ESP8266/AM2315_ESP8266.ino

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Forked from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases
88
Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WM
99
Licensed under MIT license
10-
Version: 1.5.0
10+
Version: 1.6.0
1111
1212
Version Modified By Date Comments
1313
------- ----------- ---------- -----------
@@ -38,11 +38,24 @@
3838
1.3.1 K Hoang 24/04/2021 Fix issue of custom Blynk port (different from 8080 or 9443) not working on ESP32
3939
1.4.0 K Hoang 24/04/2021 Enable scan of WiFi networks for selection in Configuration Portal
4040
1.5.0 K Hoang 25/04/2021 Fix bug. Optimize and sync with Blynk_Async_WM library v1.5.0
41+
1.6.0 K Hoang 19/05/2021 Fix AP connect and SSL issues caused by breaking ESP8266 core v3.0.0
4142
*****************************************************************************************************************************/
4243

4344
#include "defines.h"
4445

45-
#include <Ticker.h>
46+
///////////////////////////////////////////////////////////////////
47+
#if ( USING_ESP8266_CORE_VERSION >= 30000 )
48+
// Only to deal with ESP8266 core v3.0.0 warning in Ticker library
49+
#pragma GCC diagnostic push
50+
#pragma GCC diagnostic ignored "-Wcast-function-type"
51+
52+
#include <Ticker.h>
53+
#pragma GCC diagnostic pop
54+
#else
55+
#include <Ticker.h>
56+
#endif
57+
///////////////////////////////////////////////////////////////////
58+
4659
#include <Wire.h>
4760
#include <Adafruit_AM2315.h> // To install Adafruit AM2315 library
4861

@@ -84,7 +97,7 @@ void ReadData()
8497
}
8598

8699
void set_led(byte status)
87-
{
100+
{
88101
digitalWrite(LED_BUILTIN, status);
89102
}
90103

@@ -156,6 +169,7 @@ void setup()
156169
#endif
157170

158171
#if USE_BLYNK_WM
172+
Serial.println(ESP8266_CORE_VERSION);
159173
Serial.println(BLYNK_WM_VERSION);
160174
Serial.println(ESP_DOUBLE_RESET_DETECTOR_VERSION);
161175
#endif

0 commit comments

Comments
 (0)