How can I read date and time data from RTC of sim900 module using arduino? -
#include "sim900.h" #include <softwareserial.h> #include "sms.h" smsgsm sms; boolean started=false; int count = 0; void setup() { pinmode(5, input); // input pin switch serial.begin(9600); if (gsm.begin(2400)) { serial.println("\nstatus=ready"); started=true; } else serial.println("\nstatus=idle"); delay(1000); } void loop() { if (digitalread(5)==1) { delay(500); if (digitalread(5)==1) { count = count+1; /*if(started) { if (sms.sendsms("+12345678", "alarm")) serial.println("\nsms sent ok"); }*/ serial.println("count = "); serial.println(count); readtime(); serial.println(content); } } else { serial.println("normal"); } } i use sim 900 arduino detect change of input pin 5 , alarm user. have few question need ...