1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 A B C Console Action Module Response Comment AT+CWMODE=3 Setup ESP-01 to...
4 downloads
23 Views
183KB Size
A 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Console Action AT+CWMODE=3<0x0d><0x0a>
B C Copyright® 2014 EINFODEV, Inc. All rights reserved. Module Response Comment Setup ESP-01 to be both station and access point <0x0d><0x0a>OK<0x0d><0x0a>
AT+RST<0x0d><0x0a> <0x0d><0x0a>OK<0x0d><0x0a> <0x0d><0x0a>Ready<0x0d><0x0a>
Information about the firmware Other connect to access point
AT+CWLIF<0x0d><0x0a> 192.168.4.100 <0x0d><0x0a>OK<0x0d><0x0a> Select multi-connection mode
AT+CIPMUX=1<0x0d><0x0a> <0x0d><0x0a>OK<0x0d><0x0a>
Start socket socket server on port 23
AT+CIPSERVER=1,23<0x0d><0x0a> <0x0d><0x0a>OK<0x0d><0x0a> Link<0x0d><0x0a>
192.168.4.100 connect to the socket server at port 23 using Hyperterm
AT+CIPSTATUS<0x0d><0x0a>
18 19 20 21 22 AT+CIPSEND=0,1 23 24 Z 25 26 27 28 AT+CIPCLOSE=0<0x0d><0x0a> 29
STATUS:3<0x0d><0x0a>+CIPSTATUS:0,"TCP", "192.168.4.100", 1624,1 <0x0d><0x0a>OK<0x0d><0x0a> <0x0d><0x0a>+IPD,0,1:A <0x0d><0x0a>OK<0x0d><0x0a>
Socket client send char A
> Z socket client display Z <0x0d><0x0a>SEND OK<0x0d><0x0a> <0x0d><0x0a>OK<0x0d><0x0a>Unlink<0x0d><0x0a>