bangnaga

SoftwareSerial send sms

Oct 2nd, 2013 (edited)
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. contoh yg pernah saya coba dan berhasil, semoga membantu:
  2.  
  3. #include <SoftwareSerial.h>
  4. SoftwareSerial mySerial(3,4); // RX=3, TX=4
  5.  
  6. void setup() {
  7.  
  8.     mySerial.begin(9600);
  9.  
  10. //test kirim SMS pake modem wavecom fastrac
  11.     mySerial.println("at+cmgs=089630423432");
  12.     mySerial.write(13);
  13.     delay(1000);
  14.     mySerial.println(mssg);
  15.     mySerial.write(26);
  16.  
  17. }
  18.  
  19. void loop
  20. {
  21. }
Add Comment
Please, Sign In to add comment