I'm trying to send/receive data from/to esp 8266, at the I just wanted to try communication between two esp one as client other as server.
for server I used the following commands:
Code: Select all
Server
AT+CWMODE=3
AT+CIPMUX=1
AT+CIPSERVER=1,80
for the client:
Code: Select all
ready
AT+GMR
AT version:0.51.0.0(Nov 27 2015 13:37:21)
SDK version:1.5.0
compile time:Nov 27 2015 13:58:02
OK
WIFI DISCONNECT
AT+CWLAP
+CWLAP:(0,"ESP_0AE65B",-48,"*********",1,-6,0)
OK
AT+CWJAP="ESP_0AE65B",""
WIFI CONNECTED
WIFI GOT IP
OK
AT+CIFSR
+CIFSR:STAIP,"192.168.4.2"
+CIFSR:STAMAC,"5c:cf:7f:0a:ea:5b"
OK
AT+CIPSTART="TCP","192.168.4.1",80
CONNECT
OK
CLOSED
AT+CIPSTART="TCP","192.168.4.1",80
CONNECT
OK
CLOSED
the connection is closed in less a second and in my server terminal I get
Code: Select all
0, CONNECT
0, CLOSED
0, CONNECT
0, CLOSED
even when I succeed the connection with cipstart, in my server I still have in my server the 0, connect and 0,closed, and the send( at+cipsend) fail ...
What I have to do
thank you all.