speedEC
Full Member level 6
- Joined
- Apr 1, 2011
- Messages
- 337
- Helped
- 23
- Reputation
- 46
- Reaction score
- 21
- Trophy points
- 1,298
- Activity points
- 4,324
AT+CMGS="9xxxxxxxxxxx" //
check for '>' character
Message
cntrl Z
here i'm sending these commands as a string.
How shud i send the number..in double inverted comma "9xxxxxxxxx"
send_string("AT+CMGS="9xxxxxxxxx"");
enter();
You can double quotes as \" or equivalent hex(0x22):
For example:
Code:
send_string("AT+CMGS=\"9xxxxxxxxx\"");
OR
send_string("AT+CMGS=");
send_char(0x22);
send_string("9xxxxxxxxx");
send_char(0x22);
<Enter>
wait for >
message
<ctrl><Z>
and how to send a message to multiple numbers ??
You can send to multiple recipient but you have to wait to receive "OK" from every message you sent.
- - - Updated - - -
can we use AT+CMGW command to store the message at particular memory location and later sending it to multiple numbers ??
You can do. see the datasheet for AT+CMGW.