Chengdu Ebyte Electronic Technology Co.,Ltd.
NA611-S & NA611-SA User Manual
Copyright ©2012–2022
,
Chengdu Ebyte Electronic Technology Co.,Ltd.
第
30
页
HTTP URL content: represents the URL part of the HTTP message body, such as the HTTP content part of the
test above.
(POST method URL)
/devices/505619290/datapoints
(GET method URL)
http://api.heclouds.com/devices/505619290/datapoints?datastream_id=test_stream
HTTP domain name: represents the IP address of the target HTTP server, such as 183.230.33.80 in the above
test content
HTTP port: Represents the port number of the target HTTP server, such as the appeal 80, the general HTTP
port number is port 80
HTTP header content:Represents the HTTP header part, as appealed
api-key:SlxhH3MCLvuuvXJ0N=a14Yo6EAQ=\r\nHost:api.heclouds.com
After
configuring
the
HTTP
information
,
send
{"datastreams":[{"id":"test_stream","datapoints":[{"value":28}]}]}
(
post message
)
You can POST information to
the HTTP server, and send datastream _id=test stream to GET information from the HTTP server.
4.3.4. Network receive cache
All links have a total of 15K (15*1024Bit) network cache to alleviate the impact of the network speed being greater
than the serial port speed during continuous transmission.
4.4. Support DHCP and domain name resolution
4.4.1. DHCP
AP mode supports dynamic allocation of I P of connected devices;
STA mode device can automatically obtain IP through the router, and automatically configure the subnet mask and
DNS server, support modifying the subnet mask and DNS server, modification error may cause the device to work
abnormally. It is recommended that the subnet mask be modified with the DNS server when dynamically acquiring
IP (when statically switching to dynamic, the device automatically synchronizes the subnet mask with the DNS
server).
4.4.2. DNS
When the other modes are switched to STA mode, the device automatically follows the router to configure the DNS
server, and the user can enter the configuration of the custom DNS server again to meet the needs of custom
domain name resolution.