USR-G761w Guide Line
h.usriot.com
Jinan USR IOT Technology Limited
www.usriot.com
5
/
35
5.1.1.
HTTPD Client mode
In this work mode, you can configure the HTTP Header, HTTP Server address and port number of HTTP server.
Your serial data will be package as HTTP format and send to HTTP server.
The buffer of serial receiving is 1KB. Your packages can not over 1KB.
Figure 2 AT command set
Example:
1.
Set as HTTPD client mode:
AT+WKMOD=HTTPD
2.
Set as HTTP GET:
AT+HTPTP=GET
2.
Set URL of HTTP request:
AT+HTPURL=/1.php[3F]
3.
Set server of HTTP request:
AT+HTPSV=test.usr.cn,80
4.
Set HTTP header:
AT+HTPHD=Connection:
close[0D][0A]
5.
Set HTTP request out time:
AT+HTPTO=10
6.
Whether cut off the HTTP header of response data:
AT+HTPFLT=ON
Command Name
Command Function
Default Parameters
AT+WKMOD
Query/Set Work Mode
NET
AT+ HTPTP
Query/Set HTTP Work Mode
GET
AT+ HTPURL
Query/Set URL
/1.php[3F]
AT+ HTPSV
Query/Set Address and Port of Target Server
test.usr.cn,80
AT+ HTPHD
Query/Set HTTP Protocol HEAD Information
Connection: close[0D][0A]
AT+ HTPFLT
Query/Set whether open filtering capability of HEAD
OFF
AT+HTPTO
Query/Set timeout time
10