Ebyte Cloud Function Configuration - Ebyte EA01-S User Manual

Nb-iot module
Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co., Ltd
Type=2, ACK frame, response message, response to CON message received.
Type=3, RST frame, reset message, when the message received by the receiver contains an error, if the receiver parses
the message or no longer cares about the content sent by the sender, the reset message will be sent.
<code>: Configure the function code for sending messages.
ode =1, GET method, used to obtain 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, using the command AT+COAPHEADER =0,1, you can send a COAP get message. The message includes
a fixed header which may have option or token.
3.15.7 COAP data receiving description
Serial port prints the header information of the received COAP data frame: response code: <code>, type: <type>,
tid: <tid>, ending with \r\n. <code>: indicates the function code of the server response, <type>: indicates the type
of the received message, <tid>: indicates the message id (decimal format) of the received message;
If there is a token in the received message, the serial port prints the token: <token>. ending with \r\n, and <token>
is in the form of a HEX string.
If there is option in the received message, the serial port will print option type: <type>, value: <value> and ending
with \r\n.
If there is payload in the received message, the serial port will print payload: <payload> and ending with \r\n.

3.16 Ebyte cloud function configuration

3.16.1 Address and port configuration
AT command
AT+EIOTADDR=<addr>,<port>\r\n
AT+EIOTADDR \r\n
<addr>: It can be IP address or domain name, the maximum length is 50 bytes
<port>: The port of the server
3.16.2 Turn on/off Ebyte Cloud and the configuration of SN
Copyright ©2012–2020,Chengdu Ebyte Electronic Technology Co., Ltd
Response
OK
OK
address: <addr>,port: <port>
EA01-S User Manual
19

Advertisement

Table of Contents
loading

Table of Contents