Waveshare UART-WIFI232-B2 User Manual page 49

Table of Contents

Advertisement

UART-WIFI232-B2 User Manual
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
GET/1.php?data=1234HTTP/1.1
Connection:keep-alive
User-Agent:lwip1.3.2
Host:test.waveshare.com:80
When the request mode is POST or PUT, the serial data will be added to the position behind the
HTTP protocol header; When the request method is GET, the serial data will be added to the back of
the protocol header path.
Users can customize the content of HTTP headers in the new definition mode, and can add,
delete and modify the content of each HTTP header at will according to their own needs (if the HTTP
request type is POST/PUT, UART-WIFI232-B2 will automatically add the Content-Length). The set
instructions include AT+HTPMODE, AT+HTPSV, AT+HTPTP, AT+HTPURL and AT+HTPHEAD. Please refer
to the chapter of AT Command Set for the specific command setting process. Similarly, there is a
corresponding setting page in the webpage.
Note: The above definition method is called the old version definition method. In the new
version of the setting mode, a new definition mode of HTTP header is added. If the HTTP header is set
with AT command, please use "< < CRLF > >" instead of carriage return, and the carriage return
problem is not needed when setting the built-in webpage.
The webpage settings are as follows:
(1) set the HTTPDClient request type:
49
www.waveshare.com

Advertisement

Table of Contents
loading

Table of Contents