ME310G1/ME910G1/ML865G1 AT Commands Reference Guide
80617ST10991A Rev. 11 Page 874 of 1039 2021-09-23
AT#M2MWRITE=<file_name>,<size>[,<binToMod>]
Execution command stores a generic file in the folder specified by
<file_name> parameter. The file should be sent using RAW ASCII file
transfer, and hardware flow control should be used. After command line is
terminated with <CR>, the module prompts the following five-character
sequence:
<CR>,<LF>,<greater_than><greater_than><greater_than> (see IRA 13, 10,
62, 62, 62)
then a file sized <size> bytes can be sent from TE.
The operations complete when all bytes are received. If writing ends
successfully the response is OK, otherwise, an error code is reported.
Parameters:
can be:
8. full file name path starting with
"/"
9. relative file name path
10. file name (in current directory)
if <file_name> is provided as filename
with ".bin" extension, using
<binToMod> set to 1, force the file to be
automatically written on "/mod" folder
whichever is the current directory.