- This is the new library, adding to the current Blynk_WiFiManager. It’s designed to help you eliminate
hardcodingyour Blynk credentials in
ESP32 and ESP8266boards using GSM shield (SIM800, SIM900, etc).
- You can update GSM Modem and Blynk Credentials any time you need to change via Configure Portal. Data are saved in SPIFFS or configurable locations in EEPROM.
If it cannot connect to the Blynk server in 30 seconds, it will switch to
Configuration Mode. You will see your built-in LED turned ON. In
Configuration Mode, it starts a WiFi access point called
ESP_xxxxxx. Connect to it using password
After you connected, go to http://192.168.4.1., the Browser will display the following page:
Enter your credentials (APN, GPRS User, GPRS Pass, GPRS PIN, Blynk Token, Server and Port).
Save. After the board auto-restarted, you will see if it’s connected to your Blynk server successfully.
Blynk.begin() is not a blocking call, so you can use it for critical functions requiring in loop().
Anyway, this is better for projects using Blynk just for GUI (graphical user interface).
This library is the result of discussion in this forum, thanks to @mikekgr
New in this version
- Change Synch XMLHttpRequest to Async to avoid “InvalidAccessError” DOMException (https://xhr.spec.whatwg.org/)
- Reduce memory usage.
Contributions and thanks
- Thanks to Mike Kranidis and (https://github.com/mikekgr) for initial testing the library and giving reasons, advices to start this library.
Update Jan 28th 2020
BlynkGSM_Manager libraries v1.0.1 just got included into Arduino Library Manager.
Now you can install this library directly from Arduino Library Manager.
Update Feb 09th 2020
New in this version
By design, Blynk user can run ESP32/ESP8266 boards with either WiFi or GSM/GPRS by using different sketches, and have to upload / update firmware to change. This library enables user to include both Blynk GSM/GPRS and WiFi libraries in one sketch, run both WiFi and GSM/GPRS simultaneously, or select one to use at runtime after reboot.
- This new version enables user to include both GSM/GPRS and WiFi libraries in one sketch, run both
WiFi and GSM/GPRS simultaneously, or select one to use at runtime after reboot by pressing a switch.
- Add many more useful functions such as
- Completely restructure the library.
This is the terminal debug output when running both WiFi and GSM/GPRS at the same time using example TTGO_TCALL_GSM
Start TTGO-TCALL-GSM Set GSM module baud rate Use WiFi to connect Blynk  RFC925 Hostname = TTGO-TCALL-GSM  Header = ESP32_GSM_WFM, SSID = ****, PW = ****  Server = xxx.xxx.xxx.xxx, Port = 8080, WiFi Token = ****  APN = rogers-core-appl1.apn, GPRS User = wapuser1  GPRS PW = wap, GPRS PIN = 12345678, GSM Token = ****  Board Name = TTGO-TCALL  Header = ESP32_GSM_WFM, SSID = ****, PW = ****  Server = ***.***.***.***, Port = 8080, WiFi Token = ****  APN = rogers-core-appl1.apn, GPRS User = wapuser1  GPRS PW = wap, GPRS PIN = 12345678, GSM Token = ****  Board Name = TTGO  ___ __ __ / _ )/ /_ _____ / /__ / _ / / // / _ \/ '_/ /____/_/\_, /_//_/_/\_\ /___/ v0.6.1 on ESP32  con2WF: start  con2WF: con OK  IP = 192.168.2.137, GW = 192.168.2.1, SN = 255.255.0.0  DNS1 = 192.168.2.1, DNS2 = 0.0.0.0  bg: WiFi connected. Try Blynk  BlynkArduinoClient.connect: Connecting to xxx.xxx.xxx.xxx:8080  Ready (ping: 6ms).  bg: WiFi+Blynk connected gprs apn = rogers-core-appl1.apn  ___ __ __ / _ )/ /_ _____ / /__ / _ / / // / _ \/ '_/ /____/_/\_, /_//_/_/\_\ /___/ v0.6.1 on ESP32  Modem init...  Connecting to network...  Network: Rogers Wireless  Connecting to rogers-core-appl1.apn ...  Connected to GPRS  BlynkArduinoClient.connect: Connecting to xxx.xxx.xxx.xxx:8080  Ready (ping: 315ms). BGBGBGBGBGBGBGBGBGBG BGBGBGBGBGBGBGBGBGBG BGBGBGBGBGBGBGBGBGBG BGBGBGBGBGBGBGBGBGBG