3. Whether the header of the server recovery information is removed or not can be set through the web page.
4. After setting, click Save Settings, then restart T2 to take effect.
5. Open the serial port to send data, then the serial port data will be submitted to your web server, and the serial port will also receive the server back. Complex information.
6. For details on sending a request, refer to the “httpsd Client Mode Description” icon, as shown below:
Function: Set/Query Network Protocol Parameter Format
AT+SOCK=< protocol,IP,port ><CR>
Protocol: protocol type, including
TCPS corresponds to TCP server
TCPC corresponds to TCP client
UDPS corresponds to UDP server
UDPC corresponds to UDP client
corresponds to httpsd Client
IP: IP address or domain name of the target server when the module is set to "CLIENT"
Port: Port number: local port number in Server mode, remote port number in client mode,
decimal number, less than 65535
Function: Set/Query the https request mode in httpsD Client mode.
<CR><LF>+OK=< status ><CR><LF>
AT+HTPTP =< status ><CR>
GET: The request method for https is get
POST: Represents https request method as post
Function: Set/query the URL in POST mode.
<CR><LF>+OK=< URL ><CR><LF>
AT+HTPURL =< URL ><CR>
erally starts with "/" and is longer than 99 bytes.
TCP232 T2 Software Design Manual https://h.usr.cn
Jinan Personal Network Technology Co., Ltd. Page 48 of 55
Function: Set/Query httpsd Client User
defined header information
<CR><LF>+OK=< data ><CR><LF>
AT+ HTPHEAD =< data ><CR>
defined header information, the maximum length of data is 199 bytes, and the
carriage retur n " r n" in the header is used.
<<CRLF>>Translated character substitution.
Function: Set/Query whether to filter the header of the information returned by https
AT+ HTPCHD <CR>
<CR><LF>+OK=< sta ><CR><LF>
AT+ HTPCHD =< sta ><CR>