according to msp430fr4133 diagram i connected the gsm sim800c tx with pin 3(rx mspboard) and r.x with pin 4(tx mspboard).then for the vcc(for gsm) i use a 12 v adapter and then connect the ground(gsm) with the pin 20(ground of msp)......is my connection is ok?i used the gsm in arduino....i use energia for sms
my code is
#include<msp430.h>
void SendMessage()
{
Serial.println("AT+CMGF=1"); //Sets the GSM Module in Text Mode
delay(1000); // Delay of 1000 milli seconds or 1 second
Serial.println(Serial.read());
Serial.println("AT+CMGS=\"+8801671422422\""); // Replace x with mobile number
delay(1000);
Serial.println("Warning! Excessive LPG detected at your house.");// The SMS text you want to send
delay(100);
Serial.println((char)26);// ASCII code of CTRL+Z
delay(5000);
}
void setup(){
Serial.begin(9600);
//pinMode(RED_LED, OUTPUT);
//pinMode(GREEN_LED, OUTPUT);
SendMessage();
}
void loop(){
}
is my code ok?plz help
