Send FCM using SIM800L GPRS (No Wifi) #184
-
Subject: Send FCM using SIM800L GPRS (No Wifi)Module Used: AM-036 TTGO T-Call V 1.4 ESP32 + SIM800LObjective: To Send Notification (FCM) using SIM800L GSM Module GPRS Network. (No WIFI)Library Used: FirebaseClient ( Author: Mobizt)Hi, FYI, The old library "Firebase for ESP32" works well with my code and setup. Note The project consist of 3 Files
Main Code File(Sync) START:
Main Code File(Sync) END Global.h File Content START
Global.h File Content END LilyGo Init File Content START
LilyGo Init File Content END Logs Start: 7:33:11.325 -> [6493] Initializing modem... Logs END: |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 17 replies
-
For the realtime debug message printing, please change your code to use After changes, please post the debug message again. Please note that, by setting the verbose debug level will consume too much stack. |
Beta Was this translation helpful? Give feedback.
-
You said that your SIM800 works with the old Firebase ESP32 library. I'm not sure and cannot prove this and the Please try to increase If it is still not ok, can you adapt this simple HTTPS connection with ESP_SSLClient example with your SIM800 module and test it? |
Beta Was this translation helpful? Give feedback.
-
One question. Did you add |
Beta Was this translation helpful? Give feedback.
-
Finally, I found the reason of missing library's GSM debug message. You already call gprsConnect to get the time prior to the library initialization. The network/gprs connection process in the library was skip because of it is already connected. You should try to call If it works, it is the library issue in this case when gprs was already connected outside the library before library initialization. |
Beta Was this translation helpful? Give feedback.
-
Thanks for testing and the result. These important (must show) messages are still missing from your debug which means something does not right in your code or some conflicts or you don't follow my suggestion correctly.
In your code, you should only initialize the modem and don't call any modem function to get network time ( Library does not require your ESP32 system time to work, it works with internal timer instead. Then you don't have to set your ESP32 system time. The time set in For the timestamp used in JWT token signing required by this Firebase library, you can hard code the timestamp in void timeStatusCB(uint32_t &ts)
{
ts = 1733494111; // <- change this to the current Unix epoch time.
} If possible, you should post your code in single sketch (.ino) that allow me to verify. I can't test my SIM800L because 2G network was not available in Thailand for 5 years ago. I still believe that SIM800L modem works with this Firebase library based on other user report. |
Beta Was this translation helpful? Give feedback.
For the realtime debug message printing, please change your code to use
AsyncResultCallback
instead ofAsyncResult
object.After changes, please post the debug message again.
Please note that, by setting the verbose debug level will consume too much stack.