Part Number: MSP430F5229
Hello,
since 43oh forum had crashed, im trying here:
I connected my Tx, Rx and GND pins to the matched pins in SIM900 modem and try to send sms using AT commands.
I want to declare about the UART pins in the code , because there are 2 UART interfaces in my board.
how can I do that? probably in the setup() routine, but how?
this is my code for the sms routine: is it enough? or should I get acks for the commands?
void sendsms(){
Serial.println("AT\r");
delay(1000);
Serial.println("AT+CMGF = 1\r");
delay(1000);
Serial.println("AT+CMGS =\"012345678\"\r");
delay(1000);
Serial.println("HELLO WORLD");
delay(1000);
Serial.println((char)26);
delay(100);
}
thanks
Nir