AirM2M_ESP8266 WiFi module user manual V3.2
Shanghai AirM2M Communication Technology Co., Ltd
http://www.airm2m.com
Page 59
OK
→
AT+CWJAP="yh_taihdhad","UUU02339"
Step 5: join one AP
←
OK
Note: After finishing this step, it will
automatically save the WIFI working mode
and the AP information.
1.1
)
Module works as CLIENT, single connection, non-transparent transmission
:
→
AT+CWJAP?
Check current joined AP.
←
+CWJAP:"yh_taihdhad"
OK
→
AT+CIFSR
Check current module IP address
←
172.168.1.114
→
AT+CIPSTART="TCP","172.168.1.119",4321
Set up one TCP link
←
OK
←
CONNECT OK
Means connection success.
→
AT+CIPSEND=5
Set sending length to 5, module will
automatically send data after data up to 5
ones.
→
>hello
After > comes up, send 5 characters hello to
serial port, module will automatically send
data.
←
SEND OK
means sending is successful
←
+IPD,14:hello,thisispc
Module receives server’s data and send to
serial port directly.
→
AT+CIPCLOSE
Turn off connection
←
OK
1.2
)
Module works as CLIENT, single connection, data transparent transmission
:
→
AT+CIPMODE=1
set module to transparent transmission mode
←
OK
→
AT+CIPSTART="TCP","172.168.1.119",4321
connect to one server
←
OK
←
CONNECT OK
means connection is successful
→
AT+CIPSCON=1
Save
parameter(link
parameter
and
transparent transmission mode)
←
OK
→
AT+CIPSEND
Enter transparent transmission.
Enter
transparent
transmission
directly
without reboot.
←
>
After enter
AT+CIPSEND, it will send back >,
then MCU can send data to module from
serial port, module can automatically send
out data.
←
SSSSAAAAAAAA
After
server
sending
“SSSSAAAAAAAA”,
module will display directly. Note: No data