Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sms.deleteAll() and sms.deleteAllRead() not working, index not starting at 1 and SMS missing? #43

Open
ROdoka opened this issue Mar 28, 2022 · 1 comment

Comments

@ROdoka
Copy link

ROdoka commented Mar 28, 2022

It seems both functions don't work or I'm doing it wrong:

Serial.println(sms.deleteAll()); and I see a 0 in the serial monitor.
If I delete an SMS using sms.deleteOne(idx); I get a 1 if the SMS with index exists.

While testing this lib I had received 2 SMS but their index was 21 and 22.
What about 0 to 20?
Before switching to this lib I was using just serial communication to do some tests with the SIM800L.
I already had received 2 more SMS before switching, but I don't see them with this lib.
Could it be that the lib uses a different memory location on the module compared to using a new module with just serial com?

Best regards,
Robert

@hmnhghprst
Copy link

Hi @ROdoka , When I was using this library I encountered the same issue. You can fix it with this code instead of deleteAll() function :
sms.sendATCommand("AT+CMGDA=\"DEL ALL\"");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants