High-Flying
HF-LPT120 Low Power WiFi Module User Manual
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com)
- 60 -
Path
:
Max length is 50 bytes.
B.1.4
AT+HTTPCN
Function:Set/Query Connection of HTTP protocol header
Format:
Query Operation
AT+HTTPCN<CR>
+ok=<Connection><CR><LF><CR><LF>
Set Operation
AT+HTTPCN=<Connection><CR>
+ok<CR><LF><CR><LF>
Parameters:
Connection
:
Max length is 20 bytes.
B.1.5
AT+HTTPUA
Function:Set/Query User-Agent of HTTP protocol header.
Format:
Query Operation
AT+HTTPUA<CR>
+ok=<Parameter><CR><LF><CR><LF>
Set Operation
AT+HTTPUA=<Parameter><CR>
+ok<CR><LF><CR><LF>
Parameters:
Parameter
:
Max length is 20 bytes.
B.1.6
AT+HTTPDT
Function: Send HTTP request or data.
Format:
Set Operation
AT+HTTPDT=<Data><CR>
+ok<CR><LF><CR><LF>
Parameters:
Data
:
HTTP request data, send AT+HTTPDT directly if no data to be sent.
B.2. HTTP Example
HTTP parameter settings are as follows
:
AT+HTTPURL=192.168.1.1,80
Set HTTP server address and port
AT+HTTPTP=POST
Set HTTP request type
AT+HTTPPH=/abcd
Set HTTP protocol header path
AT+HTTPCN= keep-alive
Set HTTP Connection area
AT+HTTPUA= lwip1.3.2
Set HTTP User-Agent area