SM5100B shield with UNO R2 & (IDE 1.0)
i want post code forum using sm5100b shield , programming ide v.1.0
code: [select]
#include <softwareserial.h>
softwareserial cell(2,3);
char phonenumber[] = "1xxxyyyzzzz";
void setup()
{
serial.begin(9600);
cell.begin(9600);
delay(35000); // give gsm module time initialise, locate network etc.
}
void loop()
{
cell.println("at");
delay(200);
cell.println("at+cmgf=1"); // set sms mode text
delay(200);
cell.print("at+cmgs="); // send message...
cell.write((byte)34); // ascii equivalent of "
cell.print(phonenumber);
cell.write((byte)34); // ascii equivalent of "
cell.println();
delay(200); // give module thinking time
cell.print("enter message here"); // our message send
cell.write((byte)26); // ascii equivalent of ctrl-z
cell.println();
delay(15000); // sms module needs time return ok status
too bad it's not complete.
Arduino Forum > Using Arduino > Project Guidance > SM5100B shield with UNO R2 & (IDE 1.0)
arduino
Comments
Post a Comment