C
hengdu Ebyte Electronic Technology Co., Ltd
Copyright ©2012–2020
,
C
hengdu Ebyte Electronic Technology Co., Ltd
16
<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
Response
AT+MQTTALIVE=< alive_time >\r\n
OK
AT+MQTTALIVE \r\n
OK
keep alive time:< alive_time >
<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
Response
AT+COAPADDR=<addr>,<port>,<local_port>,<enable>\r
\n
OK
AT+COAPADDR \r\n
OK
address: <addr>,port: <port>
,
local
port:< local_port >,enable<enable>
<addr>: Support IP address or domain name, the maximum length is 50 bytes
<port>: the port of the server
<local_port>: the local port
Содержание EA01-S
Страница 1: ...EA01 S User Manual NB IoT Module ...