ZHC4931Manual
Public
Chengdu Zongheng Intelligent Control Co., Ltd
46
www.iotrouter.com
4.2.
HTTP Client Function
User can modify the HTTP related register parameters through the host computer to enable
the device to package the data into the HTTP protocol format.
ZHC4931HTTP parameter introduction,
CHART 23 HTTP parameters
ITEM
Parameter
Parameter range
HTTP_MODE
http method
POST
、
GET
HTTP_URL
http url
128 byte
HTTP_KEY
http key
80 byte
Test method: POST
Test URL
:
http://122.112.235.120:8001/httpman/textEcho
Test KEY
:
DEVID=123456&data
Note: The data format sent by the device to the server is DEVID=123456&data=xxxxxxxxx
The data format issued by the server should be
data=xxxxxxxxx
XXXXXXXXX is hexadecimal data in ASCII format.
E.g:
Device raw data 0x55 0x03 0x05 0x62 0x00 0x0D 0x28 0xC9
Device HTTP data DEVID=123456&data=55030562000D28C9
If the device resolves that the data does not satisfy data = xxxxxxxxx, it
will directly discard it. If it is satisfied and the address code is the device's
own address code, perform the corresponding operation; if it is satisfied but
the address code is not the device's own address code, it will be sent to the
RS485 network.