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

Commit 864a584

Browse files
authored
v1.0.3
### Releases v1.0.3 1. Add checksum for config data integrity. 2. Add clearConfigData() to enable forcing into ConfigPortal Mode when necessary
1 parent 09a71cb commit 864a584

8 files changed

+136
-40
lines changed

README.md

Lines changed: 65 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Also see examples:
5656
6. [Geiger_Counter_OLED_BT_WF](examples/Geiger_Counter_OLED_BT_WF)
5757
7. [Geiger_Counter_OLED_BT_BLE_WF](examples/Geiger_Counter_OLED_BT_BLE_WF)
5858

59-
and real-life project [Hack GMC Geigercounter With Blynk](https://www.instructables.com/id/Hack-GMC-Geigercounter-With-Blynk/) of [Crosswalkersam](https://www.instructables.com/member/Crosswalkersam/)
59+
and real-life project [Hack GMC Geigercounter With Blynk](https://www.instructables.com/id/Hack-GMC-Geigercounter-With-Blynk/) of [Crosswalkersam](https://www.instructables.com/member/Crosswalkersam/)
6060

6161
<p align="center">
6262
<img src="https://github.com/khoih-prog/BlynkESP32_BT_WF/blob/master/examples/Geiger_Counter_OLED/pics/Box1.jpg">
@@ -92,8 +92,8 @@ Enter your credentials, then click `Save`. After you restarted, you will see you
9292

9393

9494
## Prerequisite
95-
* Release `1.0.4` or newer of the [ESP32 core for Arduino](https://github.com/espressif/arduino-esp32)
96-
* [`Blynk library 0.6.1 or later`](https://github.com/blynkkk/blynk-library/releases)
95+
* `ESP32 core 1.0.4 or later`
96+
* `Blynk library 0.6.1 or later` (https://www.arduino.cc/en/guide/libraries#toc3)
9797

9898
## Sample code
9999
```
@@ -208,28 +208,68 @@ void loop()
208208
}
209209
```
210210

211-
and this is the terminal debug output when running both WiFi and BT at the same time using example [ESP32_BLE_WF](examples/ESP32_BLE_WF)
211+
and this is the terminal debug output when running both WiFi and BT at the same time using example [Geiger_Counter_OLED_BT_BLE_WF](examples/Geiger_Counter_OLED_BT_BLE_WF)
212212

213213
```
214214
215-
Starting ESP32_BLE_WF
216-
GPIO14 LOW, Use BLE
217-
[51] Load configfile
218-
[52] OK
219-
[52] Header = ESP32_WFM, SSID = ***, PW = ***
220-
[52] Server = account.duckdns.org, Port = 8080, Token = ****
221-
[56] BT Token = ****, BLE Token = ****
222-
[64] Board Name = Geiger-OLED-BLE-BT
223-
Connecting Blynk via BLE, using auth = ****
224-
[149]
215+
216+
Starting Geiger-Counter-OLED-BT-BLE-WF
217+
Use WiFi to connect Blynk
218+
[332] RFC925 Hostname = GeigerCounter-WiFi
219+
[338] Calc Cksum = 0x3446, Read Cksum = 0x3446
220+
[338] Header = ESP32_WFM, SSID = ****, PW = ****
221+
[338] Server = ****.duckdns.org, Port = 8080, Token = ****
222+
[344] BT Token = ****, BLE Token = ****
223+
[352] Board Name = ESP32-BLE-WF
224+
[355]
225+
___ __ __
226+
/ _ )/ /_ _____ / /__
227+
/ _ / / // / _ \/ '_/
228+
/____/_/\_, /_//_/_/\_\
229+
/___/ v0.6.1 on ESP32
230+
231+
[371] con2WF: start
232+
[1872] con2WF: con OK
233+
[1872] IP = 192.168.2.92, GW = 192.168.2.1, SN = 255.255.0.0
234+
[1872] DNS1 = 192.168.2.1, DNS2 = 0.0.0.0
235+
[1872] bg: WiFi connected. Try Blynk
236+
[1875] BlynkArduinoClient.connect: Connecting to ****.duckdns.org:8080
237+
[1956] Ready (ping: 42ms).
238+
[2026] bg: WiFi+Blynk connected
239+
Use BLE to connect Blynk
240+
BLE_auth = ****
241+
[2027]
225242
___ __ __
226243
/ _ )/ /_ _____ / /__
227244
/ _ / / // / _ \/ '_/
228245
/____/_/\_, /_//_/_/\_\
229246
/___/ v0.6.1 on ESP32
230247
231-
[75491] BLE connect
232-
[77327] Ready
248+
[14199] BLE connect
249+
[15191] Ready
250+
cpm = 0 - RadiationValue = 0.000 uSv/h - Equivalent RadiationDose = 0.0000 uSv
251+
cpm = 30 - RadiationValue = 0.197 uSv/h - Equivalent RadiationDose = 0.0008 uSv
252+
cpm = 60 - RadiationValue = 0.395 uSv/h - Equivalent RadiationDose = 0.0025 uSv
253+
cpm = 90 - RadiationValue = 0.592 uSv/h - Equivalent RadiationDose = 0.0049 uSv
254+
cpm = 120 - RadiationValue = 0.790 uSv/h - Equivalent RadiationDose = 0.0082 uSv
255+
cpm = 150 - RadiationValue = 0.987 uSv/h - Equivalent RadiationDose = 0.0123 uSv
256+
cpm = 180 - RadiationValue = 1.184 uSv/h - Equivalent RadiationDose = 0.0173 uSv
257+
cpm = 210 - RadiationValue = 1.382 uSv/h - Equivalent RadiationDose = 0.0230 uSv
258+
cpm = 240 - RadiationValue = 1.579 uSv/h - Equivalent RadiationDose = 0.0296 uSv
259+
cpm = 270 - RadiationValue = 1.777 uSv/h - Equivalent RadiationDose = 0.0370 uSv
260+
cpm = 300 - RadiationValue = 1.974 uSv/h - Equivalent RadiationDose = 0.0452 uSv
261+
cpm = 330 - RadiationValue = 2.171 uSv/h - Equivalent RadiationDose = 0.0543 uSv
262+
cpm = 360 - RadiationValue = 2.369 uSv/h - Equivalent RadiationDose = 0.0642 uSv
263+
cpm = 390 - RadiationValue = 2.566 uSv/h - Equivalent RadiationDose = 0.0748 uSv
264+
cpm = 420 - RadiationValue = 2.764 uSv/h - Equivalent RadiationDose = 0.0864 uSv
265+
cpm = 450 - RadiationValue = 2.961 uSv/h - Equivalent RadiationDose = 0.0987 uSv
266+
cpm = 480 - RadiationValue = 3.158 uSv/h - Equivalent RadiationDose = 0.1119 uSv
267+
cpm = 510 - RadiationValue = 3.356 uSv/h - Equivalent RadiationDose = 0.1258 uSv
268+
cpm = 540 - RadiationValue = 3.553 uSv/h - Equivalent RadiationDose = 0.1406 uSv
269+
cpm = 570 - RadiationValue = 3.751 uSv/h - Equivalent RadiationDose = 0.1563 uSv
270+
cpm = 600 - RadiationValue = 3.948 uSv/h - Equivalent RadiationDose = 0.1727 uSv
271+
cpm = 630 - RadiationValue = 4.145 uSv/h - Equivalent RadiationDose = 0.1900 uSv
272+
233273
234274
```
235275

@@ -246,6 +286,15 @@ Connecting Blynk via BLE, using auth = ****
246286
9. Add configurable Static IP, GW, Subnet Mask and 2 DNS Servers' IP Addresses.
247287
10. Use dynamically alocated Config Portal WebServer
248288
11. Fix BT/BLE login timeout
289+
12. Add checksum for config data integrity
290+
13. Add clearConfigData() to enable forcing into ConfigPortal Mode when necessary
291+
292+
### Releases v1.0.3
293+
294+
***Why this version***
295+
296+
1. Add checksum for config data integrity.
297+
2. Add clearConfigData() to enable forcing into ConfigPortal Mode when necessary
249298

250299
### Releases v1.0.2
251300

keywords.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ getBlynkBLEToken KEYWORD2
4848
getBoardName KEYWORD2
4949
getHWPort KEYWORD2
5050
getFullConfigData KEYWORD2
51+
clearConfigData KEYWORD2
5152

5253
# Handler helpers
5354
BLYNK_READ KEYWORD2

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "BlynkESP32_BT_WF",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "Build a smartphone app for your project in minutes. Blynk allows creating IoT solutions easily. It supports WiFi, BLE, Bluetooth, Ethernet, GSM, USB, Serial. Works with many boards like ESP8266, ESP32, Arduino UNO, Nano, Due, Mega, Zero, MKR100, Yun, Raspberry Pi, Particle, Energia, ARM mbed, Intel Edison/Galileo/Joule, BBC micro:bit, DFRobot, RedBearLab, Microduino, LinkIt ONE ...",
55
"keywords": "sensors, control, device, smartphone, mobile, app, web, cloud, communication, protocol, iot, m2m, wifi, ble, bluetooth, ethernet, usb, serial, gsm, gprs, 3g, data, esp8266, http",
66
"authors":

library.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name=BlynkESP32_BT_WF
2-
version=1.0.2
2+
version=1.0.3
33
author=Khoi Hoang
44
license=MIT
55
maintainer=Khoi Hoang <khoih.prog@gmail.com>
6-
sentence=Enable inclusion of both ESP32 Blynk BT/BLE and WiFi libraries. Then run both WiFi and BT/BLE simultaneously, or select one to use at runtime after reboot.
7-
paragraph=Eliminate hardcoding your Wifi and Blynk credentials and configuration data saved in either SPIFFS or EEPROM.
6+
sentence=Enable inclusion of both ESP32 Blynk BT/BLE and WiFi libraries. Then select one at reboot or run both. Eliminate hardcoding your Wifi and Blynk credentials and configuration data saved in either SPIFFS or EEPROM.
7+
paragraph=Library for inclusion of both ESP32 Blynk BT/BLE and WiFi libraries. Then select one at reboot or run both. Eliminate hardcoding your Wifi and Blynk credentials and configuration data saved in either SPIFFS or EEPROM.
88
category=Communication
99
url=https://github.com/khoih-prog/BlynkESP32_BT_WF
1010
architectures=esp32

src/BlynkSimpleEsp32_BLE_WF.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,22 @@
66
* Forked from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases
77
* Built by Khoi Hoang https://github.com/khoih-prog/BlynkGSM_ESPManager
88
* Licensed under MIT license
9-
* Version: 1.0.2
9+
* Version: 1.0.3
1010
*
1111
* Original Blynk Library author:
1212
* @file BlynkSimpleESP32.h
1313
* @author Volodymyr Shymanskyy
1414
* @license This project is released under the MIT License (MIT)
1515
* @copyright Copyright (c) 2015 Volodymyr Shymanskyy
16-
* @date Nov 2017
16+
* @date Oct 2016
1717
* @brief
1818
*
1919
* Version Modified By Date Comments
2020
* ------- ----------- ---------- -----------
2121
* 1.0.0 K Hoang 25/01/2020 Initial coding
2222
* 1.0.1 K Hoang 27/01/2020 Enable simultaneously running BT/BLE and WiFi
2323
* 1.0.2 K Hoang 04/02/2020 Add Blynk WiFiManager support similar to Blynk_WM library
24+
* 1.0.3 K Hoang 24/02/2020 Add checksum, clearConfigData()
2425
*****************************************************************************************************************************/
2526

2627
#ifndef BlynkSimpleEsp32_BLE_WF_h

src/BlynkSimpleEsp32_BT_WF.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,22 @@
66
* Forked from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases
77
* Built by Khoi Hoang https://github.com/khoih-prog/BlynkGSM_ESPManager
88
* Licensed under MIT license
9-
* Version: 1.0.2
9+
* Version: 1.0.3
1010
*
1111
* Original Blynk Library author:
1212
* @file BlynkSimpleESP32.h
1313
* @author Volodymyr Shymanskyy
1414
* @license This project is released under the MIT License (MIT)
1515
* @copyright Copyright (c) 2015 Volodymyr Shymanskyy
16-
* @date Nov 2017
16+
* @date Oct 2016
1717
* @brief
1818
*
1919
* Version Modified By Date Comments
2020
* ------- ----------- ---------- -----------
2121
* 1.0.0 K Hoang 25/01/2020 Initial coding
2222
* 1.0.1 K Hoang 27/01/2020 Enable simultaneously running BT/BLE and WiFi
2323
* 1.0.2 K Hoang 04/02/2020 Add Blynk WiFiManager support similar to Blynk_WM library
24+
* 1.0.3 K Hoang 24/02/2020 Add checksum, clearConfigData()
2425
*****************************************************************************************************************************/
2526

2627
#ifndef BlynkSimpleEsp32_BT_WF_h

src/BlynkSimpleEsp32_WF.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Forked from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases
77
* Built by Khoi Hoang https://github.com/khoih-prog/BlynkGSM_ESPManager
88
* Licensed under MIT license
9-
* Version: 1.0.2
9+
* Version: 1.0.3
1010
*
1111
* Original Blynk Library author:
1212
* @file BlynkSimpleESP32.h
@@ -21,6 +21,7 @@
2121
* 1.0.0 K Hoang 25/01/2020 Initial coding
2222
* 1.0.1 K Hoang 27/01/2020 Enable simultaneously running BT/BLE and WiFi
2323
* 1.0.2 K Hoang 04/02/2020 Add Blynk WiFiManager support similar to Blynk_WM library
24+
* 1.0.3 K Hoang 24/02/2020 Add checksum, clearConfigData()
2425
*****************************************************************************************************************************/
2526

2627
#ifndef BlynkSimpleEsp32_WF_h

0 commit comments

Comments
 (0)