Coap Data Receiving Description; Ebyte Cloud Function Configuration; Address And Port Configuration - Ebyte EA01-D Instruction Manual

Iot serial module
Table of Contents

Advertisement

<code>, Configure the function code for sending the message
code =1, get method, used to get a resource
code =2, POST method, used to create a resource
code =3, PUT method, used to update a resource
code =4, DELETE method, used to delete a resource
For example, if AT+COAPHEADER =0,1 is input, a frame of COAP get message can be sent. The message includes a fixed header and may
have option or token.
3.9.7
COAP Data Receiving Instruction
The serial port prints the Head information of the received COAP data frame: response code: < code >, type: <type >, tid: < tid > ends with
carriage return and line feed.
< code>, indicating the function code of the server response;< type >, indicating the type of the received message;< tid >, indicating the
message ID (decimal format) of the received message.
If there is token in the received message, the serial port prints the token: < token > ends with carriage return and line feed, and < token > is
in the form of HEX string.
If there is option in the received message, the serial port prints option type: < type >, value: < value > and ends with carriage return and
line feed.
If there is Payload in the received message, the serial port prints Payload: < Payload > ends with carriage return and line feed.
4

Ebyte Cloud Function Configuration

4.1 Address and port configuration

AT Command
AT+EIOTADDR=<addr>,<port>/r/n
AT+EIOTADDR /r/n
<addr>, Support IP address or domain name, the maximum byte length is 50 bytes.
<port>, Server port
4.1.1
Turnon/offandSN configuration
AT Command
AT+EIOT=<onoff>, <keysn>/r/n
AT+EIOT /r/n
<onoff>, 1 means turn on the connection to the Ebyte Cloud, 0 means turn off the connection to the Ebyte Cloud.
Copyright ©2012–2020, Chengdu Ebyte Electronic Technology Co.,Ltd
Respond
OK
OK
address: <addr>, port: <port>
Respond
OK
OK
onoff: <onoff>,keysn: <keysn>
19

Advertisement

Table of Contents
loading

Table of Contents