code:sms_arduino
This is an old revision of the document!
Arduino SMS Script
// modified from http://code.google.com/p/sserial2mobile/ void setup() { Serial.begin(4800); Serial.println("AT+CFUN=1"); // Turn the phone on delay(500); Serial.println("AT*SWRESET"); // Reset it } void loop() { Serial.println("AT+CMGF=1"); // Set to SMS (rather than MMS etc.) delay(500); // Begin sending msg Serial.println("AT+CMGS="); Serial.print("\""); Serial.print(number); Serial.print("\""); Serial.println(); delay(500); Serial.print(msg); Serial.println(26, BYTE); delay(500); // End sending msg }
code/sms_arduino.1235411403.txt.gz · Last modified: 2009/02/23 17:50 by joshatkins