Command For Adding Token In Coap Message; Command For Removing The Option Or Token In The Message; Command For Coap Message Without Payload - Ebyte EA01-D Instruction Manual

Iot serial module
Table of Contents

Advertisement

3.9.4
InstructionsforAdding TokeninCOAPMessage
AT Command
AT+ADDTOKEN =<token>/r/n
AT+ADDTOKEN /r/n
<token>, and the data format is HEX.
The parameter to be entered in the column is 0x7A5B69EF
AT+ADDTOKEN=7A5B69EF
Read instruction
AT+ADDTOKEN
AT+ADDTOKEN
7A5B69EF
3.9.5
Removethe optionortokeninstructionfrom the message
AT Command
AT+COAPMINUS=<token>,<option>/r/n
<token> =1, remove the token in the message
<option>=1, remove the option in the message
3.9.6
Send command of COAP without payload message
AT Command
AT+COAPHEADER =<type>,<code>/r/n
AT+COAPHEADER /r/n
<type>, Configure the type of the sent message.
Type=0, CON frame, a request that needs to be acknowledged, if a con request is sent, then the other party must respond.
Type=1, NON frame, a request that does not need to be acknowledged, if a non request is sent, then the other party does not have to respond
Type=2, ACK frame, acknowledgement message, response to the con message.
Type=3, RST frame, Reset message, when the message received by the receiver contains an error, the receiver parses the message or no
longer cares what the sender sent, then the reset message will be sent.
Copyright ©2012–2020, Chengdu Ebyte Electronic Technology Co.,Ltd
Respond
OK
OK
<token>
Respond
OK
Respond
OK
OK
type:<token>,code:<code>
18

Advertisement

Table of Contents
loading

Table of Contents