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

Commit 0fb22f3

Browse files
authored
v1.2.1 for BLE auto-reconnect
### Releases v1.2.1 1. Add auto-reconnect feature for BLE. Check [Handle BLE disconnects #2](khoih-prog/Blynk_Async_ESP32_BT_WF#2)
1 parent 7779588 commit 0fb22f3

File tree

16 files changed

+79
-42
lines changed

16 files changed

+79
-42
lines changed

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ If you don't find anything, please [open a new issue](https://github.com/khoih-p
1414

1515
Please ensure to specify the following:
1616

17-
* Arduino IDE version (e.g. 1.8.13) or Platform.io version
17+
* Arduino IDE version (e.g. 1.8.15) or Platform.io version
1818
* `ESP32` Core Version (e.g. ESP32 core v1.0.6)
1919
* Contextual information (e.g. what you were trying to achieve)
2020
* Simplest possible steps to reproduce
@@ -26,10 +26,10 @@ Please ensure to specify the following:
2626
### Example
2727

2828
```
29-
Arduino IDE version: 1.8.13
29+
Arduino IDE version: 1.8.15
3030
ESP32 Core Version 1.0.6
3131
OS: Ubuntu 20.04 LTS
32-
Linux xy-Inspiron-3593 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 xy-Inspiron-3593 5.4.0-80-generic #90-Ubuntu SMP Fri Jul 9 22:49:44 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: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
* [Currently supported Boards](#currently-supported-boards)
1919
* [Not yet supported Boards](#not-yet-supported-boards)
2020
* [Changelog](#changelog)
21+
* [Releases v1.2.1](#releases-v121)
2122
* [Major Releases v1.2.0](#major-releases-v120)
2223
* [Releases v1.1.1](#releases-v111)
2324
* [Major Releases v1.1.0](#major-releases-v110)
@@ -147,6 +148,10 @@ This [**BlynkESP32_BT_WF** library](https://github.com/khoih-prog/BlynkESP32_BT_
147148

148149
## Changelog
149150

151+
### Releases v1.2.1
152+
153+
1. Add auto-reconnect feature for BLE. Check [Handle BLE disconnects #2](https://github.com/khoih-prog/Blynk_Async_ESP32_BT_WF/issues/2)
154+
150155
### Major Releases v1.2.0
151156

152157
1. Enable scan of WiFi networks for selection in Configuration Portal. Check [PR for v1.3.0 - Enable scan of WiFi networks #10](https://github.com/khoih-prog/WiFiManager_NINA_Lite/pull/10). Now you can select optional **SCAN_WIFI_NETWORKS**, **MANUAL_SSID_INPUT_ALLOWED** to be able to manually input SSID, not only from a scanned SSID lists and **MAX_SSID_IN_LIST** (from 2-15)
@@ -221,10 +226,10 @@ With this libraries modifications, we now can compile with both options, then se
221226

222227
## Prerequisites
223228

224-
1. [`Arduino IDE 1.8.13+` for Arduino](https://www.arduino.cc/en/Main/Software)
225-
2. [`Blynk library 0.6.1+`](https://github.com/blynkkk/blynk-library/releases). Never use the **beta versions** or your request for support will be ignored..
226-
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/)
227-
4. [`ESP_DoubleResetDetector v1.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).
229+
1. [`Arduino IDE 1.8.15+` for Arduino](https://www.arduino.cc/en/Main/Software)
230+
2. [`Blynk library 0.6.1`](https://github.com/blynkkk/blynk-library/releases).
231+
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/). Don't use Pre-Releases such as [`ESP32 Core 2.0.0-RC1`](https://github.com/espressif/arduino-esp32/releases/tag/2.0.0-rc1) as it's not supported yet.
232+
4. [`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).
228233
5. [`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).
229234

230235
---
@@ -1342,7 +1347,7 @@ The following is the sample terminal output when running example [ESP32_BLE_WF](
13421347

13431348
```
13441349
Starting ESP32_BLE_WF using SPIFFS without SSL on ESP32_DEV
1345-
BlynkESP32_BT_WF v1.2.0
1350+
BlynkESP32_BT_WF v1.2.1
13461351
ESP_DoubleResetDetector v1.1.1
13471352
GPIO14 HIGH, Use WiFi
13481353
USE_BLYNK_WM: Blynk_WF begin
@@ -1400,7 +1405,7 @@ FF[9799112] id: = HueNet1
14001405

14011406
```
14021407
Starting ESP32_BLE_WF using SPIFFS without SSL on ESP32_DEV
1403-
BlynkESP32_BT_WF v1.2.0
1408+
BlynkESP32_BT_WF v1.2.1
14041409
ESP_DoubleResetDetector v1.1.1
14051410
GPIO14 HIGH, Use WiFi
14061411
USE_BLYNK_WM: Blynk_WF begin
@@ -1478,7 +1483,7 @@ FFFFF
14781483

14791484
```
14801485
Starting ESP32_BLE_WF using SPIFFS without SSL on ESP32_DEV
1481-
BlynkESP32_BT_WF v1.2.0
1486+
BlynkESP32_BT_WF v1.2.1
14821487
ESP_DoubleResetDetector v1.1.1
14831488
GPIO14 HIGH, Use WiFi
14841489
USE_BLYNK_WM: Blynk_WF begin
@@ -1564,7 +1569,7 @@ CP Button Hit. Rebooting
15641569
ets Jun 8 2016 00:22:57
15651570
15661571
Starting ESP32_BLE_WF using LITTLEFS without SSL on ESP32_DEV
1567-
BlynkESP32_BT_WF v1.2.0
1572+
BlynkESP32_BT_WF v1.2.1
15681573
ESP_DoubleResetDetector v1.1.1
15691574
GPIO14 HIGH, Use WiFi
15701575
USE_BLYNK_WM: Blynk_WF begin
@@ -1645,7 +1650,7 @@ Persistent CP Button Hit. Rebooting
16451650
ets Jun 8 2016 00:22:57
16461651
16471652
Starting ESP32_BLE_WF using LITTLEFS without SSL on ESP32_DEV
1648-
BlynkESP32_BT_WF v1.2.0
1653+
BlynkESP32_BT_WF v1.2.1
16491654
ESP_DoubleResetDetector v1.1.1
16501655
GPIO14 HIGH, Use WiFi
16511656
USE_BLYNK_WM: Blynk_WF begin
@@ -1736,6 +1741,10 @@ Sometimes, the library will only work if you update the board core to the latest
17361741

17371742
## Releases
17381743

1744+
### Releases v1.2.1
1745+
1746+
1. Add auto-reconnect feature for BLE. Check [Handle BLE disconnects #2](https://github.com/khoih-prog/Blynk_Async_ESP32_BT_WF/issues/2)
1747+
17391748
### Major Releases v1.2.0
17401749

17411750
1. Enable scan of WiFi networks for selection in Configuration Portal. Check [PR for v1.3.0 - Enable scan of WiFi networks #10](https://github.com/khoih-prog/WiFiManager_NINA_Lite/pull/10). Now you can select optional **SCAN_WIFI_NETWORKS**, **MANUAL_SSID_INPUT_ALLOWED** to be able to manually input SSID, not only from a scanned SSID lists and **MAX_SSID_IN_LIST** (from 2-15)
@@ -1818,6 +1827,8 @@ Submit issues to: [BlynkESP32_BT_WF issues](https://github.com/khoih-prog/BlynkE
18181827

18191828
1. Same features for other boards with WiFi / BT
18201829
2. Optimize library so that smaller code size. Currently 2 instances of Blynk coexist and don't share code.
1830+
3. Add support to ESP32_S2 and ESP32_C3
1831+
4. Add support to ESP32 core 2.0.0+
18211832

18221833
---
18231834

@@ -1851,27 +1862,30 @@ Submit issues to: [BlynkESP32_BT_WF issues](https://github.com/khoih-prog/BlynkE
18511862
26. Permit optionally inputting one set of WiFi SSID/PWD by using `REQUIRE_ONE_SET_SSID_PW == true`
18521863
27. Enforce WiFi PWD minimum length of 8 chars
18531864
28. Enable **scan of WiFi networks** for selection in Configuration Portal
1854-
1865+
29. Add auto-reconnect feature for BLE.
1866+
18551867
---
18561868
---
18571869

18581870
### Contributions and thanks
18591871

18601872
1. Thanks to [Crosswalkersam](https://community.blynk.cc/u/Crosswalkersam) for the original code and request to inspire the work. See [Select connection Type via Switch](https://community.blynk.cc/t/select-connection-type-via-switch/43176)
18611873
2. Thanks to [Miguel Alexandre Wisintainer](https://github.com/tcpipchip) for working with, developing, debugging, testing and contributing example [PET_Check](examples/PET_Check). See also [nina-w102-ble-detector-presenca-de-pet](https://nina-b302-scanner-presenca.blogspot.com/2020/06/nina-w102-ble-detector-presenca-de-pet.html)
1862-
3. Thanks to [Thor Johnson](https://github.com/thorathome) and [Thor Johnson in Blynk](https://community.blynk.cc/u/thorathome) to test, find bug, suggest and encourage to add those new features in [Blynk_WiFiManager library](https://github.com/khoih-prog/Blynk_WM) v1.0.13, such as Default Credentials/Dynamic Parms, Configurable Config Portal Title, DRD. The powerful [Async_Blynk_WM_Template](examples/Async_Blynk_WM_Template) is written by [Thor Johnson](https://github.com/thorathome) and is included in the examples with his permission.
1874+
3. Thanks to [Thor Johnson](https://github.com/thorathome) and [Thor Johnson in Blynk](https://community.blynk.cc/u/thorathome) to test, find bug, suggest and encourage to add those new features in [Blynk_WiFiManager library](https://github.com/khoih-prog/Blynk_WM) v1.0.13, such as Default Credentials/Dynamic Parms, Configurable Config Portal Title, DRD.
18631875
Check these new features thanks to his direct contribution and/or enhancement requests :
18641876
* [How to trigger a Config Portal from code #25](https://github.com/khoih-prog/Blynk_WM/issues/25)
18651877
* [Good new feature: Blynk.resetAndEnterConfigPortal() Thanks & question #27](https://github.com/khoih-prog/Blynk_WM/issues/27)
18661878
4. Thanks to [Michael H. "bizprof"](https://github.com/bizprof). With the impressive new feature :
18671879
- `Enable scan of WiFi networks for selection in Configuration Portal`. Check [PR for v1.3.0 - Enable scan of WiFi networks #10](https://github.com/khoih-prog/WiFiManager_NINA_Lite/pull/10) leading to v1.2.0
1880+
5. Thanks to [Valeria](https://github.com/Valeria) to provide the amazing fix to permit BLE auto-reconnect. Check [Handle BLE disconnects #2](https://github.com/khoih-prog/Blynk_Async_ESP32_BT_WF/issues/2)
18681881

18691882
<table>
18701883
<tr>
18711884
<td align="center"><a href="https://github.com/Crosswalkersam"><img src="https://github.com/Crosswalkersam.png" width="100px;" alt="Crosswalkersam"/><br /><sub><b>Crosswalkersam</b></sub></a><br /></td>
18721885
<td align="center"><a href="https://github.com/tcpipchip"><img src="https://github.com/tcpipchip.png" width="100px;" alt="tcpipchip"/><br /><sub><b>⭐️ tcpipchip</b></sub></a><br /></td>
18731886
<td align="center"><a href="https://github.com/thorathome"><img src="https://github.com/thorathome.png" width="100px;" alt="thorathome"/><br /><sub><b>⭐️⭐️ Thor Johnson</b></sub></a><br /></td>
18741887
<td align="center"><a href="https://github.com/bizprof"><img src="https://github.com/bizprof.png" width="100px;" alt="bizprof"/><br /><sub><b>⭐️⭐️ Michael H. "bizprof"</b></sub></a><br /></td>
1888+
<td align="center"><a href="https://github.com/Valeria"><img src="https://github.com/Valeria.png" width="100px;" alt="Valeria"/><br /><sub><b>Valeria</b></sub></a><br /></td>
18751889
</tr>
18761890
</table>
18771891

examples/ESP32_BLE_WF/ESP32_BLE_WF.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
@date Oct 2016
1818
@brief
1919
20-
Version: 1.2.0
20+
Version: 1.2.1
2121
2222
Version Modified By Date Comments
2323
------- ----------- ---------- -----------
@@ -34,6 +34,7 @@
3434
1.1.1 K Hoang 31/01/2021 Add functions to control Config Portal (CP) from software or Virtual Switches
3535
Fix CP and Dynamic Params bugs. To permit autoreset after timeout if DRD/MRD or forced CP
3636
1.2.0 K Hoang 24/04/2021 Enable scan of WiFi networks for selection in Configuration Portal and many new features.
37+
1.2.1 K Hoang 13/08/2021 Add auto-reconnect feature for BLE
3738
*****************************************************************************************************************************/
3839
/****************************************************************************************************************************
3940
Important Notes:

examples/ESP32_BT_WF/ESP32_BT_WF.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/BlynkESP32_BT_WF
1010
Licensed under MIT license
1111
12-
Version: 1.2.0
12+
Version: 1.2.1
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -26,6 +26,7 @@
2626
1.1.1 K Hoang 31/01/2021 Add functions to control Config Portal (CP) from software or Virtual Switches
2727
Fix CP and Dynamic Params bugs. To permit autoreset after timeout if DRD/MRD or forced CP
2828
1.2.0 K Hoang 24/04/2021 Enable scan of WiFi networks for selection in Configuration Portal and many new features.
29+
1.2.1 K Hoang 13/08/2021 Add auto-reconnect feature for BLE
2930
*****************************************************************************************************************************/
3031
/****************************************************************************************************************************
3132
Important Notes:

examples/Geiger_Counter_BLE/Geiger_Counter_BLE.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/BlynkESP32_BT_WF
1010
Licensed under MIT license
1111
12-
Version: 1.2.0
12+
Version: 1.2.1
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -26,6 +26,7 @@
2626
1.1.1 K Hoang 31/01/2021 Add functions to control Config Portal (CP) from software or Virtual Switches
2727
Fix CP and Dynamic Params bugs. To permit autoreset after timeout if DRD/MRD or forced CP
2828
1.2.0 K Hoang 24/04/2021 Enable scan of WiFi networks for selection in Configuration Portal and many new features.
29+
1.2.1 K Hoang 13/08/2021 Add auto-reconnect feature for BLE
2930
*****************************************************************************************************************************/
3031
/****************************************************************************************************************************
3132
Important Notes:

examples/Geiger_Counter_BT/Geiger_Counter_BT.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/BlynkESP32_BT_WF
1010
Licensed under MIT license
1111
12-
Version: 1.2.0
12+
Version: 1.2.1
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -26,6 +26,7 @@
2626
1.1.1 K Hoang 31/01/2021 Add functions to control Config Portal (CP) from software or Virtual Switches
2727
Fix CP and Dynamic Params bugs. To permit autoreset after timeout if DRD/MRD or forced CP
2828
1.2.0 K Hoang 24/04/2021 Enable scan of WiFi networks for selection in Configuration Portal and many new features.
29+
1.2.1 K Hoang 13/08/2021 Add auto-reconnect feature for BLE
2930
*****************************************************************************************************************************/
3031
/****************************************************************************************************************************
3132
Important Notes:

examples/Geiger_Counter_OLED/Geiger_Counter_OLED.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/BlynkESP32_BT_WF
1010
Licensed under MIT license
1111
12-
Version: 1.2.0
12+
Version: 1.2.1
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -26,6 +26,7 @@
2626
1.1.1 K Hoang 31/01/2021 Add functions to control Config Portal (CP) from software or Virtual Switches
2727
Fix CP and Dynamic Params bugs. To permit autoreset after timeout if DRD/MRD or forced CP
2828
1.2.0 K Hoang 24/04/2021 Enable scan of WiFi networks for selection in Configuration Portal and many new features.
29+
1.2.1 K Hoang 13/08/2021 Add auto-reconnect feature for BLE
2930
*****************************************************************************************************************************/
3031
/****************************************************************************************************************************
3132
Important Notes:

examples/Geiger_Counter_OLED_BT_BLE_WF/Geiger_Counter_OLED_BT_BLE_WF.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/BlynkESP32_BT_WF
1010
Licensed under MIT license
1111
12-
Version: 1.2.0
12+
Version: 1.2.1
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -26,6 +26,7 @@
2626
1.1.1 K Hoang 31/01/2021 Add functions to control Config Portal (CP) from software or Virtual Switches
2727
Fix CP and Dynamic Params bugs. To permit autoreset after timeout if DRD/MRD or forced CP
2828
1.2.0 K Hoang 24/04/2021 Enable scan of WiFi networks for selection in Configuration Portal and many new features.
29+
1.2.1 K Hoang 13/08/2021 Add auto-reconnect feature for BLE
2930
*****************************************************************************************************************************/
3031
/****************************************************************************************************************************
3132
Important Notes:

examples/Geiger_Counter_OLED_BT_WF/Geiger_Counter_OLED_BT_WF.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/BlynkESP32_BT_WF
1010
Licensed under MIT license
1111
12-
Version: 1.2.0
12+
Version: 1.2.1
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -26,6 +26,7 @@
2626
1.1.1 K Hoang 31/01/2021 Add functions to control Config Portal (CP) from software or Virtual Switches
2727
Fix CP and Dynamic Params bugs. To permit autoreset after timeout if DRD/MRD or forced CP
2828
1.2.0 K Hoang 24/04/2021 Enable scan of WiFi networks for selection in Configuration Portal and many new features.
29+
1.2.1 K Hoang 13/08/2021 Add auto-reconnect feature for BLE
2930
*****************************************************************************************************************************/
3031
/****************************************************************************************************************************
3132
Important Notes:

examples/PET_Check/PET_Check.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/BlynkESP32_BT_WF
1010
Licensed under MIT license
1111
12-
Version: 1.2.0
12+
Version: 1.2.1
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -26,6 +26,7 @@
2626
1.1.1 K Hoang 31/01/2021 Add functions to control Config Portal (CP) from software or Virtual Switches
2727
Fix CP and Dynamic Params bugs. To permit autoreset after timeout if DRD/MRD or forced CP
2828
1.2.0 K Hoang 24/04/2021 Enable scan of WiFi networks for selection in Configuration Portal and many new features.
29+
1.2.1 K Hoang 13/08/2021 Add auto-reconnect feature for BLE
2930
*****************************************************************************************************************************/
3031
/****************************************************************************************************************************
3132
Example Created by Miguel Alexandre Wisintainer

0 commit comments

Comments
 (0)