Low power WIFI module user manual
Jinan USR IOT Technology Limited
Page 70/72
Parameters:
Path
:
Max length is 50 bytes.
C.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.
C.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.
C.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.
C.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