Httpdclient Mode - Waveshare UART-WIFI232-B2 User Manual

Table of Contents

Advertisement

UART-WIFI232-B2 User Manual
The following are specific application examples:
Send data: 55aa000a00000021008500A8C0010f
Length byte 000a: The length is n+m+5, here it is 10.
Function code 00: UDP mode
The destination IP address is 8500A8C0:192.168.0.133.
Data area 00: length is 1,
Checksum calculation: 0x00+0x00+0x21+0x00+0x85+0x00+0xA8+0xC0+0x01 = 0x0F.
Note: The serial command mode is a data transmission mode, so please pay attention to
distinguish it from the AT command mode which can query or set the parameters of the serial server!

6.1.3 HTTPDCLIENT MODE

In this mode, the user can send the data to the designated HTTP server, and UART-WIFI232-B2
will automatically add an HTTP protocol header in front of the sent data, and the specific content of
the protocol header can be set through AT instruction or webpage.
This mode is used for UART-WIFI232-B2 to transmit data to or obtain data from the HTTP server.
After the user sets the specific content of HTTP header with AT command or webpage. Every time
data is sent, UART-WIFI232-B2 will automatically package the sent data into HTTP protocol data and
send it to the designated HTTP server. The data received from the server will be directly transmitted
to the serial port without any processing. UART-WIFI232-B2 handles the complicated HTTP protocol,
which is convenient for users to program the serial port without considering too many HTTP issues.
The maximum size of data sent is 1000 bytes.
46
www.waveshare.com

Advertisement

Table of Contents
loading

Table of Contents