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

Commit 0fb0839

Browse files
authored
v1.1.0
### Major Releases v1.1.0 1. Add support to LittleFS for ESP32 using [LITTLEFS](https://github.com/lorol/LITTLEFS) Library 2. Clean-up all compiler warnings possible. 3. Add Table of Contents 4. Add Version String
1 parent 34ce828 commit 0fb0839

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+679
-386
lines changed

CONTRIBUTING.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
## Contributing to BlynkESP32_BT_WF
1+
## Contributing to Blynk_Async_ESP32_BT_WF
22

33
### Reporting Bugs
44

5-
Please report bugs in BlynkESP32_BT_WF if you find them.
5+
Please report bugs in Blynk_Async_ESP32_BT_WF if you find them.
66

77
However, before reporting a bug please check through the following:
88

9-
* [Existing Open Issues](https://github.com/khoih-prog/BlynkESP32_BT_WF/issues) - someone might have already encountered this.
9+
* [Existing Open Issues](https://github.com/khoih-prog/Blynk_Async_ESP32_BT_WF/issues) - someone might have already encountered this.
1010

11-
If you don't find anything, please [open a new issue](https://github.com/khoih-prog/BlynkESP32_BT_WF/issues/new).
11+
If you don't find anything, please [open a new issue](https://github.com/khoih-prog/Blynk_Async_ESP32_BT_WF/issues/new).
1212

1313
### How to submit a bug report
1414

1515
Please ensure to specify the following:
1616

17-
* Arduino IDE version (e.g. 1.8.11) or Platform.io version
17+
* Arduino IDE version (e.g. 1.8.13) or Platform.io version
1818
* `ESP32` Core Version (e.g. ESP32 core v1.0.4)
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.11
29+
Arduino IDE version: 1.8.13
3030
ESP32 Core Version 1.0.4
31-
OS: Ubuntu 16.04 LTS
32-
Linux Inspiron 4.4.0-170-generic #199-Ubuntu SMP Thu Nov 14 01:45:04 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
31+
OS: Ubuntu 20.04 LTS
32+
Linux xy-Inspiron-3593 5.4.0-51-generic #56-Ubuntu SMP Mon Oct 5 14:28:49 UTC 2020 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.
@@ -45,7 +45,7 @@ Steps to reproduce:
4545

4646
Feel free to post feature requests. It's helpful if you can explain exactly why the feature would be useful.
4747

48-
There are usually some outstanding feature requests in the [existing issues list](https://github.com/khoih-prog/BlynkESP32_BT_WF/issues?q=is%3Aopen+is%3Aissue+label%3Aenhancement), feel free to add comments to them.
48+
There are usually some outstanding feature requests in the [existing issues list](https://github.com/khoih-prog/Blynk_Async_ESP32_BT_WF/issues?q=is%3Aopen+is%3Aissue+label%3Aenhancement), feel free to add comments to them.
4949

5050
### Sending Pull Requests
5151

README.md

Lines changed: 214 additions & 68 deletions
Large diffs are not rendered by default.

examples/Async_ESP32_BLE_WF/Async_ESP32_BLE_WF.ino

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/Blynk_Async_ESP32_BT_WF
1010
Licensed under MIT license
1111
12-
Version: 1.0.6
12+
Version: 1.1.0
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
1616
1.0.6 K Hoang 25/08/2020 Initial coding to use (ESP)AsyncWebServer instead of (ESP8266)WebServer.
17-
Bump up to v1.0.16 to sync with BlynkESP32_BT_WF v1.0.6.
17+
Bump up to v1.0.6 to sync with BlynkESP32_BT_WF v1.0.6.
18+
1.1.0 K Hoang 30/12/2020 Add support to LittleFS. Remove possible compiler warnings. Update examples
1819
*****************************************************************************************************************************/
1920
/****************************************************************************************************************************
2021
Important Notes:
@@ -107,8 +108,10 @@ void setup()
107108
Serial.begin(115200);
108109
while (!Serial);
109110

110-
#if ( USE_SPIFFS)
111-
Serial.print(F("\nStarting Async_ESP32_BLE_WF using SPIFFS"));
111+
#if (USE_LITTLEFS)
112+
Serial.print(F("\nStarting Async_ESP32_BLE_WF using LITTLEFS"));
113+
#elif (USE_SPIFFS)
114+
Serial.print(F("\nStarting Async_ESP32_BLE_WF using SPIFFS"));
112115
#else
113116
Serial.print(F("\nStarting Async_ESP32_BLE_WF using EEPROM"));
114117
#endif
@@ -117,7 +120,13 @@ void setup()
117120
Serial.println(" with SSL on " + String(ARDUINO_BOARD));
118121
#else
119122
Serial.println(" without SSL on " + String(ARDUINO_BOARD));
120-
#endif
123+
#endif
124+
125+
Serial.println(BLYNK_ASYNC_ESP32_BT_WF_VERSION);
126+
127+
#if USE_BLYNK_WM
128+
Serial.println(ESP_DOUBLE_RESET_DETECTOR_VERSION);
129+
#endif
121130

122131
pinMode(WIFI_BLE_SELECTION_PIN, INPUT_PULLUP);
123132

examples/Async_ESP32_BLE_WF/Credentials.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/Blynk_Async_ESP32_BT_WF
1010
Licensed under MIT license
1111
12-
Version: 1.0.6
12+
Version: 1.1.0
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
1616
1.0.6 K Hoang 25/08/2020 Initial coding to use (ESP)AsyncWebServer instead of (ESP8266)WebServer.
17-
Bump up to v1.0.16 to sync with BlynkESP32_BT_WF v1.0.6.
17+
Bump up to v1.0.6 to sync with BlynkESP32_BT_WF v1.0.6.
18+
1.1.0 K Hoang 30/12/2020 Add support to LittleFS. Remove possible compiler warnings. Update examples
1819
*****************************************************************************************************************************/
1920

2021
#ifndef Credentials_h

examples/Async_ESP32_BLE_WF/defines.h

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,37 +9,41 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/Blynk_Async_ESP32_BT_WF
1010
Licensed under MIT license
1111
12-
Version: 1.0.6
12+
Version: 1.1.0
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
1616
1.0.6 K Hoang 25/08/2020 Initial coding to use (ESP)AsyncWebServer instead of (ESP8266)WebServer.
17-
Bump up to v1.0.16 to sync with BlynkESP32_BT_WF v1.0.6.
17+
Bump up to v1.0.6 to sync with BlynkESP32_BT_WF v1.0.6.
18+
1.1.0 K Hoang 30/12/2020 Add support to LittleFS. Remove possible compiler warnings. Update examples
1819
*****************************************************************************************************************************/
1920

2021
#ifndef defines_h
2122
#define defines_h
2223

2324
#ifndef ESP32
24-
#error This code is intended to run on the ESP32 platform! Please check your Tools->Board setting.
25+
#error This code is intended to run on the ESP32 platform! Please check your Tools->Board setting.
2526
#endif
2627

27-
#define BLYNK_PRINT Serial
28+
#define BLYNK_PRINT Serial
2829

29-
#define ESP32_BLE_WF_DEBUG true
30+
#define ESP32_BLE_WF_DEBUG true
3031

3132
#define DOUBLERESETDETECTOR_DEBUG true
3233
#define BLYNK_WM_DEBUG 3
3334

34-
// Not use #define USE_SPIFFS => using EEPROM for configuration data in WiFiManager
35-
// #define USE_SPIFFS false => using EEPROM for configuration data in WiFiManager
36-
// #define USE_SPIFFS true => using SPIFFS for configuration data in WiFiManager
37-
// Those above #define's must be placed before #include <BlynkSimpleEsp32_Async_WFM.h>
35+
// Not use #define USE_LITTLEFS and #define USE_SPIFFS => using SPIFFS for configuration data in WiFiManager
36+
// (USE_LITTLEFS == false) and (USE_SPIFFS == false) => using EEPROM for configuration data in WiFiManager
37+
// (USE_LITTLEFS == true) and (USE_SPIFFS == false) => using LITTLEFS for configuration data in WiFiManager
38+
// (USE_LITTLEFS == true) and (USE_SPIFFS == true) => using LITTLEFS for configuration data in WiFiManager
39+
// (USE_LITTLEFS == false) and (USE_SPIFFS == true) => using SPIFFS for configuration data in WiFiManager
40+
// Those above #define's must be placed before #include <BlynkSimpleEsp32_WFM.h>
3841

39-
#define USE_SPIFFS true
40-
//#define USE_SPIFFS false
42+
#define USE_LITTLEFS true
43+
#define USE_SPIFFS false
4144

42-
#if (!USE_SPIFFS)
45+
46+
#if !( USE_SPIFFS || USE_LITTLEFS)
4347
// EEPROM_SIZE must be <= 2048 and >= CONFIG_DATA_SIZE (currently 172 bytes)
4448
#define EEPROM_SIZE (2 * 1024)
4549
// EEPROM_START + CONFIG_DATA_SIZE must be <= EEPROM_SIZE

examples/Async_ESP32_BLE_WF/dynamicParams.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/Blynk_Async_ESP32_BT_WF
1010
Licensed under MIT license
1111
12-
Version: 1.0.6
12+
Version: 1.1.0
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
1616
1.0.6 K Hoang 25/08/2020 Initial coding to use (ESP)AsyncWebServer instead of (ESP8266)WebServer.
17-
Bump up to v1.0.16 to sync with BlynkESP32_BT_WF v1.0.6.
17+
Bump up to v1.0.6 to sync with BlynkESP32_BT_WF v1.0.6.
18+
1.1.0 K Hoang 30/12/2020 Add support to LittleFS. Remove possible compiler warnings. Update examples
1819
*****************************************************************************************************************************/
1920

2021
#ifndef dynamicParams_h

examples/Async_ESP32_BT_WF/Async_ESP32_BT_WF.ino

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
/****************************************************************************************************************************
22
Async_ESP32_BT_WF.ino
3-
For ESP32 using WiFi along with BlueTooth BT
3+
For ESP32 using WiFi along with BlueTooth BLE
44
55
Blynk_Async_ESP32_BT_WF is a library, using AsyncWebServer instead of (ESP8266)WebServer for inclusion of both ESP32
66
Blynk BT/BLE and WiFi libraries. Then select either one or both at runtime.
77
88
Based on and modified from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases
99
Built by Khoi Hoang https://github.com/khoih-prog/Blynk_Async_ESP32_BT_WF
1010
Licensed under MIT license
11-
12-
Version: 1.0.6
11+
12+
Version: 1.1.0
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
1616
1.0.6 K Hoang 25/08/2020 Initial coding to use (ESP)AsyncWebServer instead of (ESP8266)WebServer.
17-
Bump up to v1.0.16 to sync with BlynkESP32_BT_WF v1.0.6.
17+
Bump up to v1.0.6 to sync with BlynkESP32_BT_WF v1.0.6.
18+
1.1.0 K Hoang 30/12/2020 Add support to LittleFS. Remove possible compiler warnings. Update examples
1819
*****************************************************************************************************************************/
1920
/****************************************************************************************************************************
2021
Important Notes:
@@ -107,17 +108,25 @@ void setup()
107108
Serial.begin(115200);
108109
while (!Serial);
109110

110-
#if ( USE_SPIFFS)
111-
Serial.print(F("\nStarting Async_ESP32_BT_WF using SPIFFS"));
111+
#if (USE_LITTLEFS)
112+
Serial.print(F("\nStarting Async_ESP32_BT_WF using LITTLEFS"));
113+
#elif (USE_SPIFFS)
114+
Serial.print(F("\nStarting Async_ESP32_BLE_WF using SPIFFS"));
112115
#else
113-
Serial.print(F("\nStarting Async_ESP32_BT_WF using EEPROM"));
116+
Serial.print(F("\nStarting Async_ESP32_BLE_WF using EEPROM"));
114117
#endif
115118

116119
#if USE_SSL
117120
Serial.println(" with SSL on " + String(ARDUINO_BOARD));
118121
#else
119122
Serial.println(" without SSL on " + String(ARDUINO_BOARD));
120-
#endif
123+
#endif
124+
125+
Serial.println(BLYNK_ASYNC_ESP32_BT_WF_VERSION);
126+
127+
#if USE_BLYNK_WM
128+
Serial.println(ESP_DOUBLE_RESET_DETECTOR_VERSION);
129+
#endif
121130

122131
pinMode(WIFI_BT_SELECTION_PIN, INPUT_PULLUP);
123132

examples/Async_ESP32_BT_WF/Credentials.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
/****************************************************************************************************************************
22
Credentials.h
3-
For ESP32 boards
3+
For ESP32 using WiFi along with BlueTooth BLE
44
55
Blynk_Async_ESP32_BT_WF is a library, using AsyncWebServer instead of (ESP8266)WebServer for inclusion of both ESP32
66
Blynk BT/BLE and WiFi libraries. Then select either one or both at runtime.
77
88
Based on and modified from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases
99
Built by Khoi Hoang https://github.com/khoih-prog/Blynk_Async_ESP32_BT_WF
1010
Licensed under MIT license
11-
12-
Version: 1.0.6
11+
12+
Version: 1.1.0
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
1616
1.0.6 K Hoang 25/08/2020 Initial coding to use (ESP)AsyncWebServer instead of (ESP8266)WebServer.
17-
Bump up to v1.0.16 to sync with BlynkESP32_BT_WF v1.0.6.
17+
Bump up to v1.0.6 to sync with BlynkESP32_BT_WF v1.0.6.
18+
1.1.0 K Hoang 30/12/2020 Add support to LittleFS. Remove possible compiler warnings. Update examples
1819
*****************************************************************************************************************************/
1920

2021
#ifndef Credentials_h

examples/Async_ESP32_BT_WF/defines.h

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,49 @@
11
/****************************************************************************************************************************
22
defines.h
3-
For ESP32 boards
3+
For ESP32 using WiFi along with BlueTooth BLE
44
55
Blynk_Async_ESP32_BT_WF is a library, using AsyncWebServer instead of (ESP8266)WebServer for inclusion of both ESP32
66
Blynk BT/BLE and WiFi libraries. Then select either one or both at runtime.
77
88
Based on and modified from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases
99
Built by Khoi Hoang https://github.com/khoih-prog/Blynk_Async_ESP32_BT_WF
1010
Licensed under MIT license
11-
12-
Version: 1.0.6
11+
12+
Version: 1.1.0
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
1616
1.0.6 K Hoang 25/08/2020 Initial coding to use (ESP)AsyncWebServer instead of (ESP8266)WebServer.
17-
Bump up to v1.0.16 to sync with BlynkESP32_BT_WF v1.0.6.
17+
Bump up to v1.0.6 to sync with BlynkESP32_BT_WF v1.0.6.
18+
1.1.0 K Hoang 30/12/2020 Add support to LittleFS. Remove possible compiler warnings. Update examples
1819
*****************************************************************************************************************************/
1920

2021
#ifndef defines_h
2122
#define defines_h
2223

2324
#ifndef ESP32
24-
#error This code is intended to run on the ESP32 platform! Please check your Tools->Board setting.
25+
#error This code is intended to run on the ESP32 platform! Please check your Tools->Board setting.
2526
#endif
2627

27-
#define BLYNK_PRINT Serial
28+
#define BLYNK_PRINT Serial
2829

29-
#define ESP32_BLE_WF_DEBUG true
30+
#define ESP32_BLE_WF_DEBUG true
3031

3132
#define DOUBLERESETDETECTOR_DEBUG true
3233
#define BLYNK_WM_DEBUG 3
3334

34-
// Not use #define USE_SPIFFS => using EEPROM for configuration data in WiFiManager
35-
// #define USE_SPIFFS false => using EEPROM for configuration data in WiFiManager
36-
// #define USE_SPIFFS true => using SPIFFS for configuration data in WiFiManager
37-
// Those above #define's must be placed before #include <BlynkSimpleEsp32_Async_WFM.h>
35+
// Not use #define USE_LITTLEFS and #define USE_SPIFFS => using SPIFFS for configuration data in WiFiManager
36+
// (USE_LITTLEFS == false) and (USE_SPIFFS == false) => using EEPROM for configuration data in WiFiManager
37+
// (USE_LITTLEFS == true) and (USE_SPIFFS == false) => using LITTLEFS for configuration data in WiFiManager
38+
// (USE_LITTLEFS == true) and (USE_SPIFFS == true) => using LITTLEFS for configuration data in WiFiManager
39+
// (USE_LITTLEFS == false) and (USE_SPIFFS == true) => using SPIFFS for configuration data in WiFiManager
40+
// Those above #define's must be placed before #include <BlynkSimpleEsp32_WFM.h>
41+
42+
#define USE_LITTLEFS true
43+
#define USE_SPIFFS false
3844

39-
#define USE_SPIFFS true
40-
//#define USE_SPIFFS false
4145

42-
#if (!USE_SPIFFS)
46+
#if !( USE_SPIFFS || USE_LITTLEFS)
4347
// EEPROM_SIZE must be <= 2048 and >= CONFIG_DATA_SIZE (currently 172 bytes)
4448
#define EEPROM_SIZE (2 * 1024)
4549
// EEPROM_START + CONFIG_DATA_SIZE must be <= EEPROM_SIZE

examples/Async_ESP32_BT_WF/dynamicParams.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
/****************************************************************************************************************************
22
dynamicParams.h
3-
For ESP32 boards
3+
For ESP32 using WiFi along with BlueTooth BLE
44
55
Blynk_Async_ESP32_BT_WF is a library, using AsyncWebServer instead of (ESP8266)WebServer for inclusion of both ESP32
66
Blynk BT/BLE and WiFi libraries. Then select either one or both at runtime.
77
88
Based on and modified from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases
99
Built by Khoi Hoang https://github.com/khoih-prog/Blynk_Async_ESP32_BT_WF
1010
Licensed under MIT license
11-
12-
Version: 1.0.6
11+
12+
Version: 1.1.0
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
1616
1.0.6 K Hoang 25/08/2020 Initial coding to use (ESP)AsyncWebServer instead of (ESP8266)WebServer.
17-
Bump up to v1.0.16 to sync with BlynkESP32_BT_WF v1.0.6.
17+
Bump up to v1.0.6 to sync with BlynkESP32_BT_WF v1.0.6.
18+
1.1.0 K Hoang 30/12/2020 Add support to LittleFS. Remove possible compiler warnings. Update examples
1819
*****************************************************************************************************************************/
1920

2021
#ifndef dynamicParams_h

0 commit comments

Comments
 (0)