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

Getting bits of the AT commands from sendSMS() in the message text. #26

Open pragmatiker opened 2 years ago

pragmatiker commented 2 years ago

I used the included example today:

GSM.begin(9600);     
text="Testing Sms";     //text for the message. 
number="+49171326*******";    //change to a valid number.
error=GSM.sendSms(number,text);

Instead of just:

Tesing Sms

I intermittendly get something like this in the SMS I receive:

Testing Sms
AT+CMGF=1
AT#CMGs="+49171326*******"
Testing Sms

Sometimes the Sms gets sent twice. I removed country code +49 from the number, thought the + character would do some concatenation, but it didnt do any good. What could cause this?

vittorioexp commented 1 year ago

Try to add some debug prints in the SendSMS function