Hello, I am trying to sent AT commands to my SM5100b.
When I compile:
char mobilenumber[] = "17708436766"; // Replace xxxxxxxx with the recipient's mobile number
void setup()
{
//Initialize serial ports for communication.
Serial1.begin(9600);
delay(35000); // give the GSM module time to initialise, locate network etc.
// this delay time varies. Use example 26.1 sketch to measure the amount
// of time from board reset to SIND: 4, then add five seconds just in case
}
void loop()
{
Serial1.println("AT+CMGF=1"); // set SMS mode to text
Serial1.print("AT+CMGS=");
Serial1.print(34,BYTE); // ASCII equivalent of "
Serial1.print(mobilenumber);
Serial1.println(34,BYTE); // ASCII equivalent of "
delay(500); // give the module some thinking time
Serial1.print("They call me the count... because I like to count! Ah ha ha ha");
Serial1.println(26,BYTE); // ASCII equivalent of Ctrl-Z
delay(15000); // the SMS module needs time to return to OK status
do // You don't want to send out multiple SMSs.... or do you?
{
delay(1);
}
while (1>0);
}
I get: "BYTE not supported, please use Serial.write()"
I've looked on here and I'm not sure how to send the ASCII " with Serial.write()
Thanks very much