vittorioexp / Sim800L-Arduino-Library-revised

The SIM800L Arduino Library is a simple and easy-to-use library for the SIM800L module, allowing for quick and efficient communication with the module using the Arduino platform.
GNU General Public License v3.0
101 stars 46 forks source link

Waiting for CMGS when sending the message #20

Closed sekyHC closed 3 years ago

sekyHC commented 3 years ago

I was getting false positives when sending the message right on the reboot without an active signal.

Return string from the module was: +CSN:1 OK, which was interpreted as a success.

How to reproduce:

  1. power on arduino after it was without power for long time (long enough to loose connection)
  2. try to send a message in the start of the loop or in setup
  3. sendSms will return false, but it should actually be true (it was not an error, but it was definitely not a success)