ME310G1/ME910G1/ML865G1 AT Commands Reference Guide
80617ST10991A Rev. 11 Page 431 of 1039 2021-09-23
AT+CMGW
Execution command writes a new short message in the <memw>
memory storage (see +CPMS). It can have two syntax formats according
to the SMS format: PDU or Text mode (see +CMGF command). If short
message is successfully written the following URC is displayed:
+CMGW: <index>
Additional info:
In PDU mode the +CMGW command has the following syntax:
AT+CMGW=<length>[,<stat>]
After command line is terminated with <CR>, the module responds
sending a four-character sequence prompt:
<CR><LF><greater_than><space> (IRA 13, 10, 62, 32)
and waits for the specified number of bytes.
To write the message issue Ctrl-Z char (0x1A hex). To exit without
sending the message issue ESC char (0x1B hex).