USR-WIFI232-A/B/C User Manual
http://www.usriot.com
Jinan USR IOT Technology Limited
Page 29 of 93
Below is the specific application, for example:
The first set HTTP parameters using AT instructions.
AT+HTTPURL=192.168.1.1,80
The serveraddress and portsettings
AT+HTTPTP=POST
Set the HTTP type, GET, PUT or POST
AT+HTTPPH=/set
Set the path,the mostis50 bytes
AT+HTTPCN=keep-alive
Set the Connection,maximum length of 20bytes
AT+HTTPUA=lwip13.2
Set the User-Agent,maximum length of 20bytes
If the sending data is 1234.In the 80 port of 192.168.1.1 will receive the following data
POST /set HTTP /1.1
Connection:keep-alive
User-Agent:lwip1.3.2
Content-Length:4
Host:192.168.1.1:80
1234
If the HTTP type is GET, the 80 port 192.168.1.1 receive data
POST /set
1234
HTTP /1.1
Connection:keep-alive
User-Agent:lwip1.3.2
Content-Length:0
Host:192.168.1.1:80
Data received from server will be directly sent to the serial port,without any treatment.
Note: after V5.01.14 version of the firmware it add a new method of HTTP header definition,
called the new mode, the way at above, is called the old mode.
Users can custom HTTP headers in the way of the new mode, can add, delete, modify the
contents of each HTTP header (if the HTTP request type is POST/PUT, module will automatically
add the Content - Length).Including the AT + HTPMODE, AT + HTPSV, AT + HTPTP, AT +
HTPURL, AT + HTPHEAD, specific instructions please refer to the AT command set process
section.Similarly, also has the corresponding Settings page in the web page.
Note: in the new mode, if you use the AT command set HTTP headers, Please use the
"<<CRLF>>" instead of carriage "return",in the web page,you don't need to worry about the
"return".
4.3
4.3
4.3
4.3 Wireless
Wireless
Wireless
Wireless Networking
Networking
Networking
Networking
USR-WIFI232-A/B/C module can be configured as both wireless STA and AP base on network
type. Logically there are two interfaces in USR-WIFI232-A/B/C. One is for STA, and another is for
AP. When USR-WIFI232-A/B/C works as AP, other STA equipments are able to connect to
wireless LAN via USR-WIFI232-A/B/C module. Wireless Networking with USR-WIFI232-A/B/C is
very flexible.
Following figure shows the functional architecture of USR-WIFI232-A/B/C module: