TTGO T-Call ( ESP32 + SIM800l ) combine BlynkClient.ino & HttpClient.ino

Dear @mikekgr

Thanks a lot for your offer, but I’ll not take it.

Don’t worry, I’m very financially healthy. I just ordered several SIM800L shields from Amazon and will order TTGO T-Call (ESP-32 + SIM800L) from AliExpress and Amazon (if found) just to satisfy my curiosity.

I’m always open to learn new things (sadly still zillions and zillions of them) or something I haven’t got chance to do. Whenever dealing with and solving problems, isn’t it exciting and worth to spend time and effort? I believe the harder the situation is, the more we’ll learn in the process.

From this experience, I’m currently writing / modifying / creating (done 80-90%) a new so-called BlynkGSM_Manager for ESP32/ESP8266 and MegaWiFiR3. Just hope to help in this situation.

The APN, GPRS_User, GPRS_PW, SIM PIN, Blynk Server / Port / token will be stored in SPIFFS / EEPROM to avoid being hardcoded. This is very similar to those previous Blynk_WM library using WiFi Config Portal (you can access by Cellphone / Computer / Tablet)

  1. If config data already stored in SPIFFS/ EEPROM and valid, init GSM modem, then connect to Blynk. If not connected to Blynk, go to 2)
  2. If no config data stored in SPIFFS/EEPROM or invalid, or to start config portal
    • init wifi,
    • start config portal,
    • let user to input GSM/Blynk credentials,
    • store in SPIFFS/EEPROM (for other boards such as Mega, just use EEPROM),
    • finally restart. Repeat step 1.
  3. The Blynk.begin() will not be blocking
  4. The Blynk.run() will take care of reconnecting, restarting, reconfig, etc. and will not be blocking to allow other critical tasks working normally (similar features to the Blynk_WM library).

If you have more ideas, please add.

Regards,
KH

1 Like