EasyManua.ls Logo

Waveshare RS232/485 TO WIFI POE ETH (B) - Page 47

Waveshare RS232/485 TO WIFI POE ETH (B)
76 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
RS232/485 TO WIFI POE ETH (B) User Manual
www.waveshare.com
47
Figure POST type data packaging mode
AT command setting:
Table HTTPDClient instruction list
No.
Command
Note
1
HTPMODE
Switching between new and old versions of HTTP header settings (HTTPDClient)
2
HTTPURL
Set/query the IP and port of HTTP servers in old version
3
HTTPTP
Set/query the HTTP protocol request in old version:
4
HTTPPH
Set/query the HTTP protocol header path in old version:
5
HTTPCN
To set/query the HTTP protocol header Connection in old version:
6
HTTPUA
To set/query the HTTP protocol header User-Agent in old version:
7
HTPSV
Set/query server address and IP (HTTPDClient) in new version
8
HTPTP
Set/query the request method (HTTPDClient) in new version
9
HTPURL
Setup/query request path (HTTPDClient) in new version
10
HTPHEAD
Set/query HTTP header (HTTPDClient) in new version.
11
HTTPSCEN
Set/query the connection mode of HTTPClient (long/short)
12
HTTPSCT
Set/query HTTPDClient short connection timeout (3-65535s)
The following are examples of specific applications:
First, use AT command to set the related parameters of HTTP:
If the data sent is 1234, Then the 80 port of test.waveshare.com will get the following data:
POST/2.php?HTTP/1.1
Connection:keep-alive
User-Agent:lwip1.3.2
Content-Length:4
Host:test.waveshare.com:80
1234
If the HTTP type is GET, the data received on port 80 of test.waveshare.com is

Table of Contents