Cmgw – write message to memory – Westermo GDW-11 User Manual
Page 98

98 Short Messages commands
6615-2220
+CMGW – Write Message to Memory
Description:
This command stores a message in memory (either SMS-SUBMIT or SMS-DELIVERS).
The memory location <index> is returned (no choice possible as with phonebooks
+CPBW).
Text or PDU is entered as described for the Send Message +CMGS command.
Syntax text mode:
(<index> is returned in both cases)
AT+CMGW= <oa/da> [,<tooa/toda> [,<stat> ] ] <CR>
enter text <ctrl-Z / ESC>
Syntax in PDU mode:
AT+CMGW= <length> [,<stat>] <CR>
give PDU <ctrl-Z / ESC>
Parameters:
<oa/da>
Originating or Destination Address Value in string format.
<tooa/toda>
Type of Originating / Destination Address
<stat>
Text mode
PDU mode
“REC UNREAD”
0
“REC READ”
1
“STO UNSENT”
2
“STO SENT”
3
NOTE:
Integer type in PDU mode (default 2 for +CMGW), or string type in text mode (default
“STO UNSENT” for +CMGW). Indicates the status of message in memory. If <stat> is
omitted, the stored message is considered as a message to send.
<length>
Length of the actual data unit in bytes