How can I let Arduino GSM shield respond only to authorized numbers? -
i working on project send '1' arduino gsm shield switch on led connected pin 13 , switch off sending '0', modify code in order gsm shield respond number specified. here code, in case used example phone number. when send message adminnumber led not switch on nor off. // include gsm library #include <gsm.h> // pin number sim #define pinnumber "" // initialize library instances gsm gsmaccess; gsm_sms sms; // array hold number sms retreived char sendernumber[20]; char adminnumber[20]="+123456789234"; void setup() { // initialize digital pin 13 output. pinmode(13, output); // initialize serial communications , wait port open: serial.begin(9600); while (!serial) { ; // wait serial port connect. needed leonardo } serial.println("sms messages receiver"); // connection state boolean notconnected = true; // start gsm connection while (notconnected) { if (gsmaccess.begin(pinnumber) == gsm_ready) ...