4G_2G DTU Products Function
- 11 -
packet, and the data request of the serial port device to the HTTP server can be realized by simple
parameter setting.
Figure 6.
HTTP Mode Transmission
For GET request, the received UART packet AAA will put after
the HTTP path (auto add “?”
between path and parameters), for POST request, packet is put in the content (auto add Content-
Length header information).
Product will send the below data to HTTP Server when UART receive
“pppp” data for GET
request.
GET
/1111
?pppp
HTTP/1.1
Host: 192.168.83.107
Product will output “DDDDD” when get response from the HTTP server.
HTTP/1.1 200 OK
Server: nginx
DDDDD