ESP8266 Developer Zone The Official ESP8266 Forum 2016-06-12T09:35:46+08:00 https://bbs.espressif.com:443/feed.php?f=16&t=2269 2016-06-12T09:35:46+08:00 2016-06-12T09:35:46+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2269&p=7278#p7278 <![CDATA[Re: problem with at+cipstart]]>
Please have a try with the server

Code:

Server
AT+CWMODE=3
AT+CIPMUX=1
AT+CIPSERVER=1,80
AT+CIPSTO=120

Statistics: Posted by ESP_Faye — Sun Jun 12, 2016 9:35 am


]]>
2016-06-09T19:18:19+08:00 2016-06-09T19:18:19+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2269&p=7271#p7271 <![CDATA[problem with at+cipstart]]> 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:

Server
AT+CWMODE=3
AT+CIPMUX=1
AT+CIPSERVER=1,80

for the client:

Code:

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:

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.

Statistics: Posted by mril — Thu Jun 09, 2016 7:18 pm


]]>