Westermo GD-01 User Manual
Page 66
66
6196-2220
+CMGW – Write Message to Memory
Description:
This command stores a message in memory (either SMS-SUBMIT or SMS-DELIVERS).
The memory location
+CPBW).Text or PDU is entered as described for the Send Message +CMGS command.
Command syntax in text mode:
AT+CMGW=
enter text
Command syntax in PDU mode:
AT+CMGW=
give PDU
Response syntax:
+CMGW:
+CMS ERROR:
Command example
Possible responses
Note
AT+CMGW=
+CMGW: 4
Write a message in text
”+33146290800”
Hello how are you?
OK
Message stored in index 4
AT+CMGW=
+CMGW:
Write a message in PDU
OK
mode, result:
message stored in
Defined values:
Parameter Definition:
Originating or Destination Address Value in string format.
Type of Originating / Destination Address.
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
sage is considered as a message to send.
0:
“REC UNREAD”
1:
“REC READ”
2:
“STO UNSENT”
3:
“STO SENT”
Length of the actual data unit in octets.
B A C K