Hello,
I just bought the Adafruit Fonoa - Minis Cellular GSM (https://www.adafruit.com/product/1963) and I would like to know how to read the mobile number of a received message?
Thanks
Fona - Read mobile number of received sms
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit2
- Posts: 22200
- Joined: Fri Mar 11, 2005 7:36 pm
Re: Fona - Read mobile number of received sms
We haven't added that functionality to the library yet, right now we only have example code for reading the text message itself. It's on our issue list
https://github.com/adafruit/Adafruit_FO ... y/issues/3
If you watch that issue, we'll close it when it's been added.
https://github.com/adafruit/Adafruit_FO ... y/issues/3
If you watch that issue, we'll close it when it's been added.
- tdicola
- Posts: 1074
- Joined: Thu Oct 17, 2013 9:11 pm
Re: Fona - Read mobile number of received sms
I just merged in a getSMSSender function so you can grab the sender/phone number of an SMS message. Grab the latest version of the library from Github and run the FONAtest example to see it in use. When you read an SMS using the 'r' command it should display the sender along with the SMS message. Check out the example code to see how it uses the getSMSSender function to retrieve this value. Let me know if you have any questions or run into issues, thanks!
Please be positive and constructive with your questions and comments.