problem with at+cipstart

mril
Posts: 5
Joined: Fri Apr 22, 2016 5:10 pm

problem with at+cipstart

Postby mril » Thu Jun 09, 2016 7:18 pm

Hi guys,
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.

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: problem with at+cipstart

Postby ESP_Faye » Sun Jun 12, 2016 9:35 am

Hi,

Please have a try with the server

Code: Select all

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

Who is online

Users browsing this forum: No registered users and 2 guests