Wireless Networking - Jinan USR IOT Technology WIFI232-A User Manual

Table of Contents

Advertisement

Below is the specific application, for example:
The first set HTTP parameters using AT instructions.
AT+HTTPURL=192.168.1.1,80
AT+HTTPTP=POST
AT+HTTPPH=/set
AT+HTTPCN=keep-alive
AT+HTTPUA=lwip13.2
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
/set1234
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
Wireless
Wireless
Networking
Networking
4.3 Wireless
4.3

Wireless 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:
Jinan USR IOT Technology Limited
USR-WIFI232-A/B/C User Manual
The serveraddress and portsettings
Set the HTTP type, GET, PUT or POST
Set the path,the mostis50 bytes
Set the Connection,maximum length of 20bytes
Set the User-Agent,maximum length of 20bytes
Page 29 of 93
http://www.usriot.com
tec@usr.cn

Advertisement

Table of Contents
loading

This manual is also suitable for:

Wifi232-bWifi232-c

Table of Contents