Skip to content

getNumberSMS() is not working #30

@tgisop

Description

@tgisop

Hi,
I am trying to get the SMS number of Sim800l but the function is not working.
All the other function are OK
the code is simple ::::

String SMSBody, SMSNum
.
.
void loop()
.
byte index = GSM.checkForSMS();
SMSBody=GSM.readSms(index);
SMSNum=GSM.getNumberSms(index);

Serial.println((String)"SMSBody :"+SMSBody);
Serial.println((String)"SMSNum :"+SMSNum);

and the results are
SMSBody :Turnon
SMSNum :

Can you help me?
Can you please edit the README.md comments?

Activity

vittorioexp

vittorioexp commented on Oct 12, 2022

@vittorioexp
Owner

Please try to execute the example [readSms.ino](https://github.com/vittorioexp/Sim800L-Arduino-Library-revised/blob/master/examples/readSms/readSms.ino)
What's the output of this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @vittorioexp@tgisop

        Issue actions

          getNumberSMS() is not working · Issue #30 · vittorioexp/Sim800L-Arduino-Library-revised