![]() ![]() Some boards require special configuration. other modules, based on supported modems. ![]() Adafruit FONA (Mini Cellular GSM Breakout) Sequans Monarch LTE Cat M1/NB1 (VZM20Q) u-blox LTE-M Modems (SARA-R4xx, SARA-N4xx, _but NOT SARA-N2xx_) u-blox 2G, 3G, 4G, and LTE Cat1 Cellular Modems (many modules including LEON-G100, LISA-U2xx, SARA-G3xx, SARA-U2xx, TOBY-L2xx, LARA-R2xx, MPCI-L2xx) Digi XBee WiFi and Cellular (using XBee command mode) ESP8266 (AT commands interface, similar to GSM modems) You can download, compile and use to be sure having full control.ġ. The Server source code is in Public Domain and written in Java. You can install and use Local Blynk Server (RPi Zero W, 3B+, 4, Laptop, PC, etc) to have full control. It can control hardware remotely, it can display sensor data, it can store data, visualize it and do many other cool things. GSM_CONNECT_OK = Blynk_GSM.connectNetwork(localBlynkGSM_ESP32_config.apn, localBlynkGSM_ESP32_config.gprsUser,īlynk was designed for the Internet of Things. Have to run WiFi then enter config portal")) īlynk_GSM.config(modem, localBlynkGSM_ESP32_config.gsm_blynk_tok, localBlynkGSM_ESP32_config.blynk_server, BLYNK_HARDWARE_PORT) If (String(localBlynkGSM_ESP32_config.apn) = String("nothing")) Serial.println(localBlynkGSM_ESP32_config.apn) GSM_CONNECT_OK = Blynk_GSM.connectNetwork(apn, gprsUser, gprsPass) īlynk_WF_Configuration localBlynkGSM_ESP32_config īlynk_WF.getFullConfigData(&localBlynkGSM_ESP32_config) Use channel = 0 => random Config Portal WiFi channel to avoid conflictīlynk_WF.setConfigPortalIP(IPAddress(192, 168, 100, 1)) īlynk_WF.begin(wifi_blynk_tok, ssid, pass, blynk_server, BLYNK_HARDWARE_PORT) īlynk_GSM.config(modem, gsm_blynk_tok, blynk_server, BLYNK_HARDWARE_PORT) Serial.println(F("Use WiFi to connect Blynk")) SerialAT.begin(115200, SERIAL_8N1, MODEM_RX, MODEM_TX) SerialMon.println(F("Set GSM module baud rate")) Set-up modem reset, enable, power pins SerialMon.println(F("\nStart TTGO-TCALL-GSM")) If ((millis() > checkstatus_timeout) || (checkstatus_timeout = 0))Ĭheckstatus_timeout = millis() + STATUS_CHECK_INTERVAL Send status report every STATUS_REPORT_INTERVAL (60) seconds: we don't need to send updates frequently if there is no status change. Static unsigned long checkstatus_timeout = 0 StreamDebugger debugger(SerialAT, SerialMon) Uncomment this if you want to see all AT commands Use ESP32 Serial2 for GSM, Serial1 for TTGO T-Call Set serial for debug console (to the Serial Monitor, default speed 115200) Usedirect IPAddress in case GPRS can't use DDNS fast enough and can't connect EEPROM_START + CONFIG_DATA_SIZE must be After the board auto-restarted, you will see if it's connected to your Blynk server successfully.Ĭode: Select all #define BLYNK_PRINT Serial , the Browser will display the following page:Įnter your credentials (APN, GPRS User, GPRS Pass, GPRS PIN, Blynk Token, Server and Port). selected Config Portal WiFi channel by using Blynk_WF.setConfigPortalChannel(channel)Īfter you connected, go to. random Config Portal WiFi channel by using Blynk_WF.setConfigPortalChannel(0)ģ. static Config Portal IP address by using Blynk_WF.setConfigPortalIP(IPAddress(xxx, xxx, xxx, xxx))Ģ. Connect to it using password MyESP_xxxxxx.ġ. In Configuration Mode, it starts a WiFi access point called ESP_xxxxxx. You will see your built-in LED turned ON. If it detects no valid stored Credentials or it cannot connect to the Blynk server in 30 seconds, it will switch to Configuration Mode. Data are saved in SPIFFS or configurable locations in EEPROM. You can update GSM Modem and Blynk Credentials any time you need to change via Configure Portal. It's designed to help you eliminate `hardcoding` your Blynk credentials in `ESP32 and ESP8266` boards using GSM shield (SIM800, SIM900, etc). This is the new library, adding to the current Blynk_WiFiManager. 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. The 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.īy 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 is a simple GSM shield Manager for Blynk and ESP32 / ESP8266 boards, with or without SSL, configuration data saved in SPIFFS / EEPROM. ![]() How To Install Using Arduino Library Manager ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |