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

getNumberSms function issue #12

Open szuwix opened 6 years ago

szuwix commented 6 years ago

Hello.

Function getNumberSms not working for me. When i uncomment 497 line: //Serial.println(_buffer.length()); always get : 0

vittorioexp commented 6 years ago

Hello, in function "getNumberSms(uint8_t index)", what number did you use as argument "index"? According to datasheet, "index" is the value in the range of location numbers supported by the associated memory.

https://www.elecrow.com/download/SIM800%20Series_AT%20Command%20Manual_V1.09.pdf

See page 117.

You could try to edit line 500 with uint8_t _idx1=_buffer.indexOf("AT+CMGR=");

vittorioexp commented 6 years ago

Does the function "readSms(uint8_t index)" work on your system?