Skip to main content
Version: 4.0

Template Commands

Return the ID of the Current Template

WhatDetail
CommandAT+SCHC=TPL,GETID
Parameter
Result codesThe template ID and then OK, or an error (see below)
 AT_ERROR,1,<status>

Error Messages

AT_ERROR,1,<status> reports a management layer error with the following possible values:

Numeric valueError codeComment
11MGT_NOT_INIT_ERRAcklio FullSDK has not been yet initialized
12MGT_TPL_NOT_INIT_ERRThe template has not been yet initialized

Get the number of Template Parameters

WhatDetail
CommandAT+SCHC=TPLPARAMS,NB
Parameters
Result codesThe number of template parameters and then OK
 AT_ERROR,1,<status>

Error Messages

AT_ERROR,1,<status> reports a management layer error with the following possible values:

Numeric valueError codeComment
11MGT_NOT_INIT_ERRAcklio FullSDK has not been yet initialized
12MGT_TPL_NOT_INIT_ERRThe template has not been yet initialized

Set Template Parameter(s)

WhatDetail
CommandAT+SCHC=TPLPARAMS,SET,<index_i>,<value_i>[,...]
ParametersOne or more pair(s) of parameter index and parameter values
Result codesOK
 AT_PARAM_ERROR
 AT_ERROR,1,<status>

Recommendations

Each parameter value must be an ASCII string containing the hexadecimal value of the parameter, of the same size as the parameter (e.g. 8 characters for a 32-bit value).

Error Messages

AT_ERROR,1,<status> reports a management layer error with the following possible values:

Numeric valueError codeComment
1MGT_ERRORInconsistent parameter length
3MGT_MEM_ERRThe memory area provided at provisioning is full
4MGT_OPERATION_NOT_SUPPORTED_ERRThe operation is not supported
5MGT_L2A_ERRNot joined yet
11MGT_NOT_INIT_ERRAcklio FullSDK has not been yet initialized
12MGT_TPL_NOT_INIT_ERRThe template has not been yet initialized
16MGT_TPL_INVALID_PARAM_IDThe index used is invalid
17MGT_TPL_INVALID_PARAMThe size of the provided value is incorrect

Get Template Parameter(s)

WhatDetail
CommandAT+SCHC=TPLPARAMS,GET,<index_i>[,...]
ParametersOne or more index(es) of template parameter(s)
Result codesOne or more pair(s) of a parameter index and the associated parameter value, and then OK, or an error (see below)
 AT_PARAM_ERROR
 AT_ERROR,1,<status>

Error Messages

AT_ERROR,1,<status> reports a management layer error with the following possible values:

Numeric valueError codeComment
1MGT_ERRORInconsistent parameter length
4MGT_OPERATION_NOT_SUPPORTED_ERRThe operation is not supported
11MGT_NOT_INIT_ERRAcklio FullSDK has not been yet initialized
12MGT_TPL_NOT_INIT_ERRThe template has not been yet initialized

Clear the Template Parameters

WhatDetail
CommandAT+SCHC=TPLPARAMS,CLR
Parameter
Result codesOK
 AT_ERROR,1,<status>

Error Messages

AT_ERROR,1,<status> reports a management layer error with the following possible values:

Numeric valueError codeComment
11MGT_NOT_INIT_ERRAcklio FullSDK has not been yet initialized
12MGT_TPL_NOT_INIT_ERRThe template has not been yet initialized