User's Manual
DTU-H100 Wi-Fi/Ethernet to RS485/RS232 Server User Manual
http://www.iotworkshop.com
24
Data:
Sent data, the maximum length is 1000 bytes.
Summary:
The following example for reference.
UART Data: 【0x55 0xaa 0x00 0x0a 0x00 0x00 0x00 0x21 0x00 0x85 0x00 0xA8 0xC0 0x01 0x0f】
Length: 【0x00 0x0a】
Function Byte:【0x00 (UDP;Short connection;IP;cut protocol)】
Destination Port:【0x21 0x00(33)】
Target Address:【0x85 0x00 0xA8 0xC0 (192.168.0.133)】
Data:【0x01(data:1)】
Sum Check:【0x0f (0x00+0x00+0x00+0x21+0x00+0x85+0x00+0xA8+0xC0+0x01=0x0f)】
3.2.3. HTTPD Client Mode
This mode is used to send data to HTTP server. It can be set by AT command or Webpage(Note
that AT+NETP and AT+TCPB channel is no long valid in this mode), it is long connection by
default.
The following shows example to use this.
Step 1:Set HTTP Command
AT+TMODE=Httpdclient
AT+HTPMODE=new
AT+HTPSV=10.10.100.200,80
AT+HTPTP=GET
AT+HTPURL=/abcd
AT+HTPHEAD=Content-type:text/html;charset=utf-8
AT+Z
Step 2:send abcd data and the device will send the following GET request to the HTTP
server.
GET /abcdabcd HTTP/1.1
Content-type:text/html;charset=utf-8










