Coap Function Configuration - Ebyte EA01-S User Manual

Nb-iot module
Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co., Ltd
<topicName>: A string within 200 bytes of the content of the subscription topic.
<qos>: The quality of service supports qos=0, qos=1, qos=2.
3.14.7 MQTT and server keepalive settings
AT command
AT+MQTTALIVE=< alive_time >\r\n
AT+MQTTALIVE \r\n
<alive_time>: Keep alive time with the server (unit: second), the data range is 2 bytes, and the default is 600 seconds (10
minutes).
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 COAP function configuration

3.15.1 COAP function description
First, AT+COAPADDR is used to configure the address and port of the COAP server and enable the COAP
function at the same time, and the AT+NRB for software resets to take effect.
Secondly, AT+PDUTYPE is used to select the data protocol type as COAP.
Then, AT+ADDOPTION, AT+ADDTOKEN, AT+COAPMINUS are used to add or delete option or token in the
message.
Finally, AT+COAPHEADER is used to send messages without payload; ATD*98 enters the transparent
transmission mode, then enters the serial port transparent transmission data. At this time, the data sent is a COAP
message with payload (the serial port transparent transmission data is COAP payload of the message).
3.15.2 COAP address parameter configuration
AT command
AT+COAPADDR=<addr>,<port>,<local_port>,<enable>\r
\n
AT+COAPADDR \r\n
<addr>: Support IP address or domain name, the maximum length is 50 bytes
<port>: the port of the server
<local_port>: the local port
Copyright ©2012–2020,Chengdu Ebyte Electronic Technology Co., Ltd
Response
OK
OK
keep alive time:< alive_time >
Response
OK
OK
address: <addr>,port: <port> , local
port:< local_port >,enable<enable>
EA01-S User Manual
16

Advertisement

Table of Contents
loading

Table of Contents