Fona - Read mobile number of received sms

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
samudebr
 
Posts: 3
Joined: Fri Aug 29, 2014 2:03 pm

Fona - Read mobile number of received sms

Post by samudebr »

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

User avatar
adafruit2
 
Posts: 22200
Joined: Fri Mar 11, 2005 7:36 pm

Re: Fona - Read mobile number of received sms

Post by adafruit2 »

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.

User avatar
tdicola
 
Posts: 1074
Joined: Thu Oct 17, 2013 9:11 pm

Re: Fona - Read mobile number of received sms

Post by tdicola »

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!

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”