PDA

View Full Version : Help Arduino Coding



brian25
10-08-2013, 01:26 AM
hi how to retrieve phone numbers in SIM and send an alert i need to save numbers in SIM card through SMS text. example (ADD +92029839389)
then if i have 5 stored numbers, i can send alert to them in one time.



#include "SIM900.h"
GSM SIM900;

char x[120];
void loop{
if(strstr(smsbuffer,"ADD") != NULL){
Serial.println(n);
}
}
void Alert(){
if(digitalRead(PIR) == HIGH){
sms.SendSMS(position,"intruder alert")
}

jwatte
10-08-2013, 10:32 AM
I suggest you ask this question on the forums at arduino.cc because they are more likely to answer "generic" Arduino-based questions.