adafruit / Adafruit_FONA

Arduino library for the Adafruit FONA
https://www.adafruit.com/products/1946
211 stars 237 forks source link

sendSMS: make the parsing of the answer from module more tolerant #138

Open pkoevesdi opened 1 year ago

pkoevesdi commented 1 year ago

I had the same problem as described here: https://forum.arduino.cc/t/sending-sms-using-adafruit-fona-working-but-returning-failed/662385/17 When the SIM module is not (correctly) recognized, the parsing of the answer of sending an SMS fails. The SMS gets sent, but FONA returns false. Even if the module is known, the method implemented is very error prone. I made a more tolerant approach.

Tested with LILYGO® TTGO T-Call V1.4 ESP32 Wireless Module SIM Antenna SIM Card SIM800L Module.