Ebyte EA01-SG User Manual page 19

Nb-iot module
Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co., Ltd.
AT+COAPADDR=<ADDR>,<PORT>,<LOCAL_PORT>,<ENA
BLE><NEWLINE>
AT+COAPADDR<NEWLINE>
 Parameter Configuration Instructions:
<Addr>,Support IP Address Or Domain Name, The Maximum Byte Length Is 50 Bytes.。
<Port>,The Port Of The Server.。
<Local_Port>,The Local Port。
<Enable>,COAP Enabled, 0 Means COAP Off; 1 Means COAP On.。
Note: When The Power Loss Needs To Be Saved, The Input AT + NRB Instruction Will Save The Parameters Into The Flash, And
Automatically Restart The Effect.
ADD OPTION COMMAND IN COAP MESSAGE
3.15.3
AT ORDER
AT+ADDOPTION=<INDEX>,<TYPE>,<VALUE><NEWLINE> OK
AT+ADDOPTION<NEWLINE>
 Parameter Configuration Instructions:
<Index>,The Serial Number Of The Option Option, With The Range From 0 To 7, Can Be Configured With Up To 8 Options, With a Storage
Space Of 1,024 Bytes.。
<Type>,The Number Of The Option Option, As Shown In The Figure Below:
As In Type=11, It Indicates That The Option Resource Type Is Uri-Path.
<Value>,Specific Content Of The Option, Such As Uri-Path Path Option Specific Value Is \ Temperature, If
The Value DATE Type Is Uint, DATE Range 0-4294967295 Range, DATE Length Is Only 0-4 Bytes.
 You Can Configure Multiple Options, Including a Maximum Of Eight, ForExample, Enter Instructions In Order Below:
AT+ADDOPTION=0,3,IOT.ECLIPSE.ORG
Copyright ©2012–2020,Chengdu Ebyte Electronic Technology Co., Ltd
OK
OK
ADDRESS: <ADDR>,PORT: <PORT> ,
LOCAL PORT:<
LOCAL_PORT >,ENABLE<ENABLE>
RESPONSE
OK
INDEX:<INDEX>,TYPE:
<TYPE>,VALUE:<VALUE>
EA01-SG User Manual
18

Advertisement

Table of Contents
loading

Table of Contents