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

Commit d2f8320

Browse files
authored
v1.0.7
### Releases v1.0.7 1. WiFi Password max length is 63, according to WPA2 standard. 2. Permit to input special chars such as ***%*** and ***#*** into data fields.
1 parent 6bba7fb commit d2f8320

File tree

13 files changed

+63
-26
lines changed

13 files changed

+63
-26
lines changed

README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
[![arduino-library-badge](https://www.ardu-badge.com/badge/BlynkGSM_Manager.svg?)](https://www.ardu-badge.com/BlynkGSM_Manager)
44

5+
### Releases v1.0.7
6+
7+
1. WiFi Password max length is 63, according to WPA2 standard.
8+
2. Permit to input special chars such as ***%*** and ***#*** into data fields.
9+
510
### Releases v1.0.6
611

712
1. New ***powerful-yet-simple-to-use feature to enable adding dynamic custom parameters*** from sketch and input using the same Config Portal. Config Portal will be auto-adjusted to match the number of dynamic parameters.
@@ -246,6 +251,7 @@ void loop()
246251

247252
## Example for ES32 and SIM800L GSM shield
248253
Please take a look at examples, as well.
254+
249255
```
250256
#ifndef ESP32
251257
#error This code is intended to run on the ESP32 platform! Please check your Tools->Board setting.
@@ -527,6 +533,7 @@ void setup()
527533
#endif
528534
}
529535
536+
#if USE_BLYNK_WM
530537
void displayCredentials(void)
531538
{
532539
Serial.println("Your stored Credentials :");
@@ -536,6 +543,7 @@ void displayCredentials(void)
536543
Serial.println(String(myMenuItems[i].displayName) + " = " + myMenuItems[i].pdata);
537544
}
538545
}
546+
#endif
539547
540548
void loop()
541549
{
@@ -549,6 +557,9 @@ void loop()
549557
Blynk_GSM.run();
550558
}
551559
560+
check_status();
561+
562+
#if USE_BLYNK_WM
552563
static bool displayedCredentials = false;
553564
554565
if (!displayedCredentials)
@@ -567,8 +578,7 @@ void loop()
567578
}
568579
}
569580
}
570-
571-
check_status();
581+
#endif
572582
}
573583
```
574584

@@ -625,6 +635,10 @@ Subs Topics = SubsTopic1
625635
Pubs Topics = PubsTopic1
626636
BGBGBGBGBGBGBGBGBGBG BGBGBGBGBGBGBGBGBGBG BGBGBGBGBGBGBGBGBGBG BGBGBGBGBGBGBGBGBGBG
627637
```
638+
### Releases v1.0.7
639+
640+
1. WiFi Password max length is 63, according to WPA2 standard.
641+
2. Permit to input special chars such as ***%*** and ***#*** into data fields.
628642

629643
### Releases v1.0.6
630644

@@ -670,6 +684,7 @@ BGBGBGBGBGBGBGBGBGBG BGBGBGBGBGBGBGBGBGBG BGBGBGBGBGBGBGBGBGBG BGBGBGBGBGBGBGBGB
670684
1. Thanks to [Mike Kranidis](https://community.blynk.cc/u/mikekgr) and [Mike Kranidis @ GitHub](https://github.com/mikekgr) for initial testing the library and giving reasons, advices to start this library.
671685
2. Thanks to [Volodymyr Shymanskyy](https://github.com/vshymanskyy) for the [TinyGSM library](https://github.com/vshymanskyy/TinyGSM) this library depends on.
672686
3. Thanks to [FRANAIRBUS](https://github.com/FRANAIRBUS) to open the request to [Add dynamic parameters](https://github.com/khoih-prog/BlynkGSM_Manager/issues/5)
687+
4. Thanks to [brondolin](https://github.com/brondolin) to provide the amazing fix. See [Issue 3](https://github.com/khoih-prog/Blynk_WM/issues/3).
673688

674689
## Contributing
675690

examples/ESP32_GSM/ESP32_GSM.ino

Lines changed: 8 additions & 3 deletions
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.6
9+
Version: 1.0.7
1010
1111
Version Modified By Date Comments
1212
------- ----------- ---------- -----------
@@ -17,6 +17,7 @@
1717
1.0.4 K Hoang 14/03/2020 Enhance Config Portal GUI. Reduce code size.
1818
1.0.5 K Hoang 20/03/2020 Add more modem supports. See the list in README.md
1919
1.0.6 K Hoang 07/04/2020 Enable adding dynamic custom parameters from sketch
20+
1.0.7 K Hoang 09/04/2020 SSID password maxlen is 63 now. Permit special chars # and % in input data.
2021
*****************************************************************************************************************************/
2122

2223
#ifndef ESP32
@@ -299,6 +300,7 @@ void setup()
299300
#endif
300301
}
301302

303+
#if USE_BLYNK_WM
302304
void displayCredentials(void)
303305
{
304306
Serial.println("Your stored Credentials :");
@@ -308,6 +310,7 @@ void displayCredentials(void)
308310
Serial.println(String(myMenuItems[i].displayName) + " = " + myMenuItems[i].pdata);
309311
}
310312
}
313+
#endif
311314

312315
void loop()
313316
{
@@ -321,6 +324,9 @@ void loop()
321324
Blynk_GSM.run();
322325
}
323326

327+
check_status();
328+
329+
#if USE_BLYNK_WM
324330
static bool displayedCredentials = false;
325331

326332
if (!displayedCredentials)
@@ -339,6 +345,5 @@ void loop()
339345
}
340346
}
341347
}
342-
343-
check_status();
348+
#endif
344349
}

examples/ESP8266_GSM/ESP8266_GSM.ino

Lines changed: 8 additions & 3 deletions
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.6
9+
Version: 1.0.7
1010
1111
Version Modified By Date Comments
1212
------- ----------- ---------- -----------
@@ -17,6 +17,7 @@
1717
1.0.4 K Hoang 14/03/2020 Enhance Config Portal GUI. Reduce code size.
1818
1.0.5 K Hoang 20/03/2020 Add more modem supports. See the list in README.md
1919
1.0.6 K Hoang 07/04/2020 Enable adding dynamic custom parameters from sketch
20+
1.0.7 K Hoang 09/04/2020 SSID password maxlen is 63 now. Permit special chars # and % in input data.
2021
*****************************************************************************************************************************/
2122

2223
#ifndef ESP8266
@@ -290,6 +291,7 @@ void setup()
290291
#endif
291292
}
292293

294+
#if USE_BLYNK_WM
293295
void displayCredentials(void)
294296
{
295297
Serial.println("Your stored Credentials :");
@@ -299,6 +301,7 @@ void displayCredentials(void)
299301
Serial.println(String(myMenuItems[i].displayName) + " = " + myMenuItems[i].pdata);
300302
}
301303
}
304+
#endif
302305

303306
void loop()
304307
{
@@ -312,6 +315,9 @@ void loop()
312315
Blynk_GSM.run();
313316
}
314317

318+
check_status();
319+
320+
#if USE_BLYNK_WM
315321
static bool displayedCredentials = false;
316322

317323
if (!displayedCredentials)
@@ -330,6 +336,5 @@ void loop()
330336
}
331337
}
332338
}
333-
334-
check_status();
339+
#endif
335340
}

examples/TTGO_TCALL_GSM/TTGO_TCALL_GSM.ino

Lines changed: 8 additions & 3 deletions
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.6
9+
Version: 1.0.7
1010
1111
Version Modified By Date Comments
1212
------- ----------- ---------- -----------
@@ -17,6 +17,7 @@
1717
1.0.4 K Hoang 14/03/2020 Enhance Config Portal GUI. Reduce code size.
1818
1.0.5 K Hoang 20/03/2020 Add more modem supports. See the list in README.md
1919
1.0.6 K Hoang 07/04/2020 Enable adding dynamic custom parameters from sketch
20+
1.0.7 K Hoang 09/04/2020 SSID password maxlen is 63 now. Permit special chars # and % in input data.
2021
*****************************************************************************************************************************/
2122

2223
#ifndef ESP32
@@ -289,6 +290,7 @@ void setup()
289290
#endif
290291
}
291292

293+
#if USE_BLYNK_WM
292294
void displayCredentials(void)
293295
{
294296
Serial.println("Your stored Credentials :");
@@ -298,6 +300,7 @@ void displayCredentials(void)
298300
Serial.println(String(myMenuItems[i].displayName) + " = " + myMenuItems[i].pdata);
299301
}
300302
}
303+
#endif
301304

302305
void loop()
303306
{
@@ -310,6 +313,9 @@ void loop()
310313
Blynk_GSM.run();
311314
#endif
312315

316+
check_status();
317+
318+
#if USE_BLYNK_WM
313319
static bool displayedCredentials = false;
314320

315321
if (!displayedCredentials)
@@ -328,6 +334,5 @@ void loop()
328334
}
329335
}
330336
}
331-
332-
check_status();
337+
#endif
333338
}

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "BlynkGSM_Manager",
3-
"version": "1.0.6",
3+
"version": "1.0.7",
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=BlynkGSM_Manager
2-
version=1.0.6
2+
version=1.0.7
33
author=Khoi Hoang
44
license=MIT
55
maintainer=Khoi Hoang <[email protected]>

src/Adapters/BlynkGsm_ESP32M.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.6
9+
Version: 1.0.7
1010
1111
Original Blynk Library author:
1212
@file BlynkSimpleESP8266.h
@@ -25,6 +25,7 @@
2525
1.0.4 K Hoang 14/03/2020 Enhance Config Portal GUI. Reduce code size.
2626
1.0.5 K Hoang 20/03/2020 Add more modem supports. See the list in README.md
2727
1.0.6 K Hoang 07/04/2020 Enable adding dynamic custom parameters from sketch
28+
1.0.7 K Hoang 09/04/2020 SSID password maxlen is 63 now. Permit special chars # and % in input data.
2829
*****************************************************************************************************************************/
2930
#ifndef ESP32
3031
#error This code is designed to run on ESP32, not ESP8266 nor Arduino AVR platform! Please check your Tools->Board setting.

src/Adapters/BlynkGsm_ESP8266M.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.6
9+
Version: 1.0.7
1010
1111
Original Blynk Library author:
1212
@file BlynkSimpleESP8266.h
@@ -25,6 +25,7 @@
2525
1.0.4 K Hoang 14/03/2020 Enhance Config Portal GUI. Reduce code size.
2626
1.0.5 K Hoang 20/03/2020 Add more modem supports. See the list in README.md
2727
1.0.6 K Hoang 07/04/2020 Enable adding dynamic custom parameters from sketch
28+
1.0.7 K Hoang 09/04/2020 SSID password maxlen is 63 now. Permit special chars # and % in input data.
2829
*****************************************************************************************************************************/
2930
#ifndef ESP8266
3031
#error This code is designed to run on ESP8266, not ESP32 nor Arduino AVR platform! Please check your Tools->Board setting.

src/BlynkSimpleEsp32_GSM_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.6
9+
Version: 1.0.7
1010
1111
Original Blynk Library author:
1212
@file BlynkSimpleESP8266.h
@@ -25,6 +25,7 @@
2525
1.0.4 K Hoang 14/03/2020 Enhance Config Portal GUI. Reduce code size.
2626
1.0.5 K Hoang 20/03/2020 Add more modem supports. See the list in README.md
2727
1.0.6 K Hoang 07/04/2020 Enable adding dynamic custom parameters from sketch
28+
1.0.7 K Hoang 09/04/2020 SSID password maxlen is 63 now. Permit special chars # and % in input data.
2829
*****************************************************************************************************************************/
2930

3031
#ifndef BlynkSimpleEsp32_GSM_WF_h

src/BlynkSimpleEsp32_GSM_WFM.h

Lines changed: 5 additions & 4 deletions
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.6
9+
Version: 1.0.7
1010
1111
Original Blynk Library author:
1212
@file BlynkSimpleESP8266.h
@@ -25,6 +25,7 @@
2525
1.0.4 K Hoang 14/03/2020 Enhance Config Portal GUI. Reduce code size.
2626
1.0.5 K Hoang 20/03/2020 Add more modem supports. See the list in README.md
2727
1.0.6 K Hoang 07/04/2020 Enable adding dynamic custom parameters from sketch
28+
1.0.7 K Hoang 09/04/2020 SSID password maxlen is 63 now. Permit special chars # and % in input data.
2829
*****************************************************************************************************************************/
2930

3031
#ifndef BlynkSimpleEsp32_GSM_WFM_h
@@ -86,7 +87,7 @@ typedef struct Configuration
8687
char header [16];
8788
// WiFi related
8889
char wifi_ssid [32];
89-
char wifi_pw [32];
90+
char wifi_pw [64]; //From v1.0.7, WPA2 passwords can be up to 63 characters long.
9091
char wifi_blynk_tok [36];
9192
// YOUR GSM / GPRS RELATED
9293
char apn [32];
@@ -102,7 +103,7 @@ typedef struct Configuration
102103
} Blynk_WF_Configuration;
103104

104105

105-
// Currently CONFIG_DATA_SIZE = 324
106+
// Currently CONFIG_DATA_SIZE = 356
106107
uint16_t CONFIG_DATA_SIZE = sizeof(struct Configuration);
107108

108109
// -- HTML page fragments
@@ -125,7 +126,7 @@ const char BLYNK_GSM_FLDSET_END[] /*PROGMEM*/ = "</fieldset>";
125126
const char BLYNK_GSM_HTML_PARAM[] /*PROGMEM*/ = "<div><label>{b}</label><input value='[[{v}]]'id='{i}'><div></div></div>";
126127
const char BLYNK_GSM_HTML_BUTTON[] /*PROGMEM*/ = "<button onclick=\"sv()\">Save</button></div>";
127128
const char BLYNK_GSM_HTML_SCRIPT[] /*PROGMEM*/ = "<script id=\"jsbin-javascript\">\
128-
function udVal(key,val){var request=new XMLHttpRequest();var url='/?key='+key+'&value='+val;request.open('GET',url,false);request.send(null);}\
129+
function udVal(key,val){var request=new XMLHttpRequest();var url='/?key='+key+'&value='+encodeURIComponent(val);request.open('GET',url,false);request.send(null);}\
129130
function sv(){udVal('id',document.getElementById('id').value);udVal('pw',document.getElementById('pw').value);\
130131
udVal('tk',document.getElementById('tk').value);udVal('apn',document.getElementById('apn').value);\
131132
udVal('usr',document.getElementById('usr').value);udVal('pwd',document.getElementById('pwd').value);\

0 commit comments

Comments
 (0)