Ebyte EA01-S User Manual page 18

Nb-iot module
Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co., Ltd
<enable>: COAP enable, 0 means turn off COAP function, 1 means turn on COAP function
Note: When power-off saving is required, input AT+NRB command will save the parameters to the flash, and the
automatic restart will take effect.
3.15.3 Command for adding option to COAP message
AT command
AT+ADDOPTION=<index>,< type>,< value>\r\n
AT+ADDOPTION \r\n
<index>: The serial number of the option, ranging from 0 to 7, a maximum of 8 options can be configured, and the
storage space is 1024 bytes.
<type>: Tthe number of option, as shown in the figure below:
For example, type=11, indicating that the option resource type is Uri-Path.
<value>, the specific content of the option, such as Uri-Path path option specific value is \temperature, If the data type of
value is Uint, the data length only supports 0-4 bytes in the data range 0-4294967295.
You can configure multiple options, up to 8 can be configured, for example, enter the command in sequence below:
AT+ADDOPTION=0,3, iot.eclipse.org
AT+ADDOPTION=1,7, 5683
AT+ADDOPTION=2,11,\temperature
Copyright ©2012–2020,Chengdu Ebyte Electronic Technology Co., Ltd
Response
OK
OK
index : <index> , type:<type> ,
value:<value>
EA01-S User Manual
17

Advertisement

Table of Contents
loading

Table of Contents