ME310G1/ME910G1/ML865G1 AT Commands Reference Guide
80617ST10991A Rev. 11 Page 885 of 1039 2021-09-23
3.23.13. AT#M2MARG - M2M Set Arguments
Set command sets/resets the main arguments of the executable binary file (".bin"
extension) saved in "/mod" directory which RUN permission has been set by #M2MRUN
command. The arguments are used by M2MB_main( argc, argv ) function.
AT#M2MARG=[<file_bin>],[<arg1>,<arg2>,…,<argn>,…,<argN>]
Parameters:
executable file name selected for arguments
setting/resetting. If parameter <file_bin> is not
present, the arguments configuration is
applied to all executables.
The format of <file_bin> is a quoted or
unquoted string, max 64 chars, case sensitive.
arguments to be applied. Format is unquoted
string (max 32 chars, case sensitive) and
maximum number of arguments is N=10. The
empty space is seen as normal character.
Comma is not supported as char inside
arguments.
If none of <argn> is present, arguments are
deleted (reset).
If an empty arg is provided in between other
args, an ERROR is returned being the current
args remained unchanged. See the following
examples:
20. AT#M2MARG=app.bin,arg1,arg2,...,argN
set the arguments to "/mod/app.bin" if
it exists