M2M_API_RESULT m2m_fs_set_run_permission( M2M_T_FS_RUN_PERM_MODE_TYPE mode,
CHAR *filename)
Description: the function has the same feature of the <mode> parameter of the AT#M2MRUN AT command, refer to document [1]. By means of this function, you can assign to one file with executable permission, the RUN permission to enable its running. The filename parameter must be without path, and the file must be stored in \MOD directory.
Parameters:
mode:
refer to M2M_T_FS_RUN_PERM_MODE_TYPE enum.
M2M_F_RUN_PERM_MODE_SET value is not supported.
filename: pointer to the zero-terminated string containing only the file name.
Return
value:
refer to M2M_API_RESULT
enum