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

Commit

Permalink
v1.0.7
Browse files Browse the repository at this point in the history
### 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.
  • Loading branch information
khoih-prog authored Apr 9, 2020
1 parent 6bba7fb commit d2f8320
Show file tree
Hide file tree
Showing 13 changed files with 63 additions and 26 deletions.
19 changes: 17 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

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

### 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.

### Releases v1.0.6

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.
Expand Down Expand Up @@ -246,6 +251,7 @@ void loop()

## Example for ES32 and SIM800L GSM shield
Please take a look at examples, as well.

```
#ifndef ESP32
#error This code is intended to run on the ESP32 platform! Please check your Tools->Board setting.
Expand Down Expand Up @@ -527,6 +533,7 @@ void setup()
#endif
}
#if USE_BLYNK_WM
void displayCredentials(void)
{
Serial.println("Your stored Credentials :");
Expand All @@ -536,6 +543,7 @@ void displayCredentials(void)
Serial.println(String(myMenuItems[i].displayName) + " = " + myMenuItems[i].pdata);
}
}
#endif
void loop()
{
Expand All @@ -549,6 +557,9 @@ void loop()
Blynk_GSM.run();
}
check_status();
#if USE_BLYNK_WM
static bool displayedCredentials = false;
if (!displayedCredentials)
Expand All @@ -567,8 +578,7 @@ void loop()
}
}
}
check_status();
#endif
}
```

Expand Down Expand Up @@ -625,6 +635,10 @@ Subs Topics = SubsTopic1
Pubs Topics = PubsTopic1
BGBGBGBGBGBGBGBGBGBG BGBGBGBGBGBGBGBGBGBG BGBGBGBGBGBGBGBGBGBG BGBGBGBGBGBGBGBGBGBG
```
### 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.

### Releases v1.0.6

Expand Down Expand Up @@ -670,6 +684,7 @@ BGBGBGBGBGBGBGBGBGBG BGBGBGBGBGBGBGBGBGBG BGBGBGBGBGBGBGBGBGBG BGBGBGBGBGBGBGBGB
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.
2. Thanks to [Volodymyr Shymanskyy](https://github.com/vshymanskyy) for the [TinyGSM library](https://github.com/vshymanskyy/TinyGSM) this library depends on.
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)
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).

## Contributing

Expand Down
11 changes: 8 additions & 3 deletions examples/ESP32_GSM/ESP32_GSM.ino
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Forked from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases
Built by Khoi Hoang https://github.com/khoih-prog/BlynkGSM_ESPManager
Licensed under MIT license
Version: 1.0.6
Version: 1.0.7
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -17,6 +17,7 @@
1.0.4 K Hoang 14/03/2020 Enhance Config Portal GUI. Reduce code size.
1.0.5 K Hoang 20/03/2020 Add more modem supports. See the list in README.md
1.0.6 K Hoang 07/04/2020 Enable adding dynamic custom parameters from sketch
1.0.7 K Hoang 09/04/2020 SSID password maxlen is 63 now. Permit special chars # and % in input data.
*****************************************************************************************************************************/

#ifndef ESP32
Expand Down Expand Up @@ -299,6 +300,7 @@ void setup()
#endif
}

#if USE_BLYNK_WM
void displayCredentials(void)
{
Serial.println("Your stored Credentials :");
Expand All @@ -308,6 +310,7 @@ void displayCredentials(void)
Serial.println(String(myMenuItems[i].displayName) + " = " + myMenuItems[i].pdata);
}
}
#endif

void loop()
{
Expand All @@ -321,6 +324,9 @@ void loop()
Blynk_GSM.run();
}

check_status();

#if USE_BLYNK_WM
static bool displayedCredentials = false;

if (!displayedCredentials)
Expand All @@ -339,6 +345,5 @@ void loop()
}
}
}

check_status();
#endif
}
11 changes: 8 additions & 3 deletions examples/ESP8266_GSM/ESP8266_GSM.ino
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Forked from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases
Built by Khoi Hoang https://github.com/khoih-prog/BlynkGSM_ESPManager
Licensed under MIT license
Version: 1.0.6
Version: 1.0.7
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -17,6 +17,7 @@
1.0.4 K Hoang 14/03/2020 Enhance Config Portal GUI. Reduce code size.
1.0.5 K Hoang 20/03/2020 Add more modem supports. See the list in README.md
1.0.6 K Hoang 07/04/2020 Enable adding dynamic custom parameters from sketch
1.0.7 K Hoang 09/04/2020 SSID password maxlen is 63 now. Permit special chars # and % in input data.
*****************************************************************************************************************************/

#ifndef ESP8266
Expand Down Expand Up @@ -290,6 +291,7 @@ void setup()
#endif
}

#if USE_BLYNK_WM
void displayCredentials(void)
{
Serial.println("Your stored Credentials :");
Expand All @@ -299,6 +301,7 @@ void displayCredentials(void)
Serial.println(String(myMenuItems[i].displayName) + " = " + myMenuItems[i].pdata);
}
}
#endif

void loop()
{
Expand All @@ -312,6 +315,9 @@ void loop()
Blynk_GSM.run();
}

check_status();

#if USE_BLYNK_WM
static bool displayedCredentials = false;

if (!displayedCredentials)
Expand All @@ -330,6 +336,5 @@ void loop()
}
}
}

check_status();
#endif
}
11 changes: 8 additions & 3 deletions examples/TTGO_TCALL_GSM/TTGO_TCALL_GSM.ino
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Forked from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases
Built by Khoi Hoang https://github.com/khoih-prog/BlynkGSM_ESPManager
Licensed under MIT license
Version: 1.0.6
Version: 1.0.7
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -17,6 +17,7 @@
1.0.4 K Hoang 14/03/2020 Enhance Config Portal GUI. Reduce code size.
1.0.5 K Hoang 20/03/2020 Add more modem supports. See the list in README.md
1.0.6 K Hoang 07/04/2020 Enable adding dynamic custom parameters from sketch
1.0.7 K Hoang 09/04/2020 SSID password maxlen is 63 now. Permit special chars # and % in input data.
*****************************************************************************************************************************/

#ifndef ESP32
Expand Down Expand Up @@ -289,6 +290,7 @@ void setup()
#endif
}

#if USE_BLYNK_WM
void displayCredentials(void)
{
Serial.println("Your stored Credentials :");
Expand All @@ -298,6 +300,7 @@ void displayCredentials(void)
Serial.println(String(myMenuItems[i].displayName) + " = " + myMenuItems[i].pdata);
}
}
#endif

void loop()
{
Expand All @@ -310,6 +313,9 @@ void loop()
Blynk_GSM.run();
#endif

check_status();

#if USE_BLYNK_WM
static bool displayedCredentials = false;

if (!displayedCredentials)
Expand All @@ -328,6 +334,5 @@ void loop()
}
}
}

check_status();
#endif
}
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "BlynkGSM_Manager",
"version": "1.0.6",
"version": "1.0.7",
"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 ...",
"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",
"authors":
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=BlynkGSM_Manager
version=1.0.6
version=1.0.7
author=Khoi Hoang
license=MIT
maintainer=Khoi Hoang <[email protected]>
Expand Down
3 changes: 2 additions & 1 deletion src/Adapters/BlynkGsm_ESP32M.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Forked from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases
Built by Khoi Hoang https://github.com/khoih-prog/BlynkGSM_ESPManager
Licensed under MIT license
Version: 1.0.6
Version: 1.0.7
Original Blynk Library author:
@file BlynkSimpleESP8266.h
Expand All @@ -25,6 +25,7 @@
1.0.4 K Hoang 14/03/2020 Enhance Config Portal GUI. Reduce code size.
1.0.5 K Hoang 20/03/2020 Add more modem supports. See the list in README.md
1.0.6 K Hoang 07/04/2020 Enable adding dynamic custom parameters from sketch
1.0.7 K Hoang 09/04/2020 SSID password maxlen is 63 now. Permit special chars # and % in input data.
*****************************************************************************************************************************/
#ifndef ESP32
#error This code is designed to run on ESP32, not ESP8266 nor Arduino AVR platform! Please check your Tools->Board setting.
Expand Down
3 changes: 2 additions & 1 deletion src/Adapters/BlynkGsm_ESP8266M.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Forked from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases
Built by Khoi Hoang https://github.com/khoih-prog/BlynkGSM_ESPManager
Licensed under MIT license
Version: 1.0.6
Version: 1.0.7
Original Blynk Library author:
@file BlynkSimpleESP8266.h
Expand All @@ -25,6 +25,7 @@
1.0.4 K Hoang 14/03/2020 Enhance Config Portal GUI. Reduce code size.
1.0.5 K Hoang 20/03/2020 Add more modem supports. See the list in README.md
1.0.6 K Hoang 07/04/2020 Enable adding dynamic custom parameters from sketch
1.0.7 K Hoang 09/04/2020 SSID password maxlen is 63 now. Permit special chars # and % in input data.
*****************************************************************************************************************************/
#ifndef ESP8266
#error This code is designed to run on ESP8266, not ESP32 nor Arduino AVR platform! Please check your Tools->Board setting.
Expand Down
3 changes: 2 additions & 1 deletion src/BlynkSimpleEsp32_GSM_WF.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Forked from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases
Built by Khoi Hoang https://github.com/khoih-prog/BlynkGSM_ESPManager
Licensed under MIT license
Version: 1.0.6
Version: 1.0.7
Original Blynk Library author:
@file BlynkSimpleESP8266.h
Expand All @@ -25,6 +25,7 @@
1.0.4 K Hoang 14/03/2020 Enhance Config Portal GUI. Reduce code size.
1.0.5 K Hoang 20/03/2020 Add more modem supports. See the list in README.md
1.0.6 K Hoang 07/04/2020 Enable adding dynamic custom parameters from sketch
1.0.7 K Hoang 09/04/2020 SSID password maxlen is 63 now. Permit special chars # and % in input data.
*****************************************************************************************************************************/

#ifndef BlynkSimpleEsp32_GSM_WF_h
Expand Down
9 changes: 5 additions & 4 deletions src/BlynkSimpleEsp32_GSM_WFM.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Forked from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases
Built by Khoi Hoang https://github.com/khoih-prog/BlynkGSM_ESPManager
Licensed under MIT license
Version: 1.0.6
Version: 1.0.7
Original Blynk Library author:
@file BlynkSimpleESP8266.h
Expand All @@ -25,6 +25,7 @@
1.0.4 K Hoang 14/03/2020 Enhance Config Portal GUI. Reduce code size.
1.0.5 K Hoang 20/03/2020 Add more modem supports. See the list in README.md
1.0.6 K Hoang 07/04/2020 Enable adding dynamic custom parameters from sketch
1.0.7 K Hoang 09/04/2020 SSID password maxlen is 63 now. Permit special chars # and % in input data.
*****************************************************************************************************************************/

#ifndef BlynkSimpleEsp32_GSM_WFM_h
Expand Down Expand Up @@ -86,7 +87,7 @@ typedef struct Configuration
char header [16];
// WiFi related
char wifi_ssid [32];
char wifi_pw [32];
char wifi_pw [64]; //From v1.0.7, WPA2 passwords can be up to 63 characters long.
char wifi_blynk_tok [36];
// YOUR GSM / GPRS RELATED
char apn [32];
Expand All @@ -102,7 +103,7 @@ typedef struct Configuration
} Blynk_WF_Configuration;


// Currently CONFIG_DATA_SIZE = 324
// Currently CONFIG_DATA_SIZE = 356
uint16_t CONFIG_DATA_SIZE = sizeof(struct Configuration);

// -- HTML page fragments
Expand All @@ -125,7 +126,7 @@ const char BLYNK_GSM_FLDSET_END[] /*PROGMEM*/ = "</fieldset>";
const char BLYNK_GSM_HTML_PARAM[] /*PROGMEM*/ = "<div><label>{b}</label><input value='[[{v}]]'id='{i}'><div></div></div>";
const char BLYNK_GSM_HTML_BUTTON[] /*PROGMEM*/ = "<button onclick=\"sv()\">Save</button></div>";
const char BLYNK_GSM_HTML_SCRIPT[] /*PROGMEM*/ = "<script id=\"jsbin-javascript\">\
function udVal(key,val){var request=new XMLHttpRequest();var url='/?key='+key+'&value='+val;request.open('GET',url,false);request.send(null);}\
function udVal(key,val){var request=new XMLHttpRequest();var url='/?key='+key+'&value='+encodeURIComponent(val);request.open('GET',url,false);request.send(null);}\
function sv(){udVal('id',document.getElementById('id').value);udVal('pw',document.getElementById('pw').value);\
udVal('tk',document.getElementById('tk').value);udVal('apn',document.getElementById('apn').value);\
udVal('usr',document.getElementById('usr').value);udVal('pwd',document.getElementById('pwd').value);\
Expand Down
3 changes: 2 additions & 1 deletion src/BlynkSimpleEsp8266_GSM_WF.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Forked from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases
Built by Khoi Hoang https://github.com/khoih-prog/BlynkGSM_ESPManager
Licensed under MIT license
Version: 1.0.6
Version: 1.0.7
Original Blynk Library author:
@file BlynkSimpleESP8266.h
Expand All @@ -25,6 +25,7 @@
1.0.4 K Hoang 14/03/2020 Enhance Config Portal GUI. Reduce code size.
1.0.5 K Hoang 20/03/2020 Add more modem supports. See the list in README.md
1.0.6 K Hoang 07/04/2020 Enable adding dynamic custom parameters from sketch
1.0.7 K Hoang 09/04/2020 SSID password maxlen is 63 now. Permit special chars # and % in input data.
*****************************************************************************************************************************/

#ifndef BlynkSimpleESP8266_GSM_WF
Expand Down
9 changes: 5 additions & 4 deletions src/BlynkSimpleEsp8266_GSM_WFM.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Forked from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases
Built by Khoi Hoang https://github.com/khoih-prog/BlynkGSM_ESPManager
Licensed under MIT license
Version: 1.0.6
Version: 1.0.7
Original Blynk Library author:
@file BlynkSimpleESP8266.h
Expand All @@ -25,6 +25,7 @@
1.0.4 K Hoang 14/03/2020 Enhance Config Portal GUI. Reduce code size.
1.0.5 K Hoang 20/03/2020 Add more modem supports. See the list in README.md
1.0.6 K Hoang 07/04/2020 Enable adding dynamic custom parameters from sketch
1.0.7 K Hoang 09/04/2020 SSID password maxlen is 63 now. Permit special chars # and % in input data.
*****************************************************************************************************************************/

#ifndef BlynkSimpleESP8266_GSM_WFM
Expand Down Expand Up @@ -93,7 +94,7 @@ typedef struct Configuration
char header [16];
// WiFi related
char wifi_ssid [32];
char wifi_pw [32];
char wifi_pw [64]; //From v1.0.7, WPA2 passwords can be up to 63 characters long.
char wifi_blynk_tok [36];
// YOUR GSM / GPRS RELATED
char apn [32];
Expand All @@ -109,7 +110,7 @@ typedef struct Configuration
} Blynk_WF_Configuration;


// Currently CONFIG_DATA_SIZE = 324
// Currently CONFIG_DATA_SIZE = 356
uint16_t CONFIG_DATA_SIZE = sizeof(struct Configuration);

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

0 comments on commit d2f8320

Please sign in to comment.