ESP8266 Developer Zone The Official ESP8266 Forum 2017-06-28T17:00:41+08:00 https://bbs.espressif.com:443/feed.php?f=16&t=5266 2017-06-28T17:00:41+08:00 2017-06-28T17:00:41+08:00 https://bbs.espressif.com:443/viewtopic.php?t=5266&p=14257#p14257 <![CDATA[Re: AT+CIPSEND gives error]]> You need to reconnect the TCP connection first.

Statistics: Posted by Her Mary — Wed Jun 28, 2017 5:00 pm


]]>
2017-06-20T01:37:21+08:00 2017-06-20T01:37:21+08:00 https://bbs.espressif.com:443/viewtopic.php?t=5266&p=14115#p14115 <![CDATA[AT+CIPSEND gives error]]>

Code:

AT+CWMODE?
+CWMODE:3

OK
AT+CWJAP_CUR="KULKARNI","rathana47"
WIFI CONNECTED
WIFI GOT IP

OK
AT+CIFSR
+CIFSR:APIP,"192.168.4.1"
+CIFSR:APMAC,"5e:cf:7f:36:d1:a1"
+CIFSR:STAIP,"192.168.1.9"
+CIFSR:STAMAC,"5c:cf:7f:36:d1:a1"

OK AT+CIPMUX=1

OK
AT+CIPSERVER=1,80

OK
0,CONNECT

+IPD,0,383:GET / HTTP/1.1
Host: 192.168.1.9
Connection: keep-alive
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Encoding: gzip, deflate, sdch
Accept-Language: en-US,en;q=0.8,hi;q=0.6

1,CONNECT
2,CONNECT
1,CLOSED
2,CLOSED
AT+CIPSEND=0,5

OK

busy s...

Recv 5 bytes

SEND OK
AT+CIPCLOSE=0
0,CLOSED

OK
0,CONNECT

+IPD,0,348:GET /favicon.ico HTTP/1.1
Host: 192.168.1.9
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36
Accept: image/webp,image/*,*/*;q=0.8
Referer: http://192.168.1.9/
Accept-Encoding: gzip, deflate, sdch
Accept-Language: en-US,en;q=0.8,hi;q=0.6

1,CONNECT
2,CONNECT



+IPD,1,409:GET / HTTP/1.1
Host: 192.168.1.9
Connection: keep-alive
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Linux; Android 5.0.2; XT1068 Build/LXB22.46-28) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.83 Mobile Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Encoding: gzip, deflate, sdch
Accept-Language: en-US,en;q=0.8,hi;q=0.6

1,CLOSED
2,CLOSED
1,CONNECT

+IPD,1, 409:GET / HTTP/1.1
Host: 192.168.1.9
Connection: keep-alive
Cache-Control: max-age=0
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Encoding: gzip, deflate, sdch
Accept-Language: en-US,en;q=0.8,hi;q=0.6

0,CLOSED
AT+CIPSEND=0,6
[b]link is not valid[/b] 

ERROR
AT+CIPSERVER=1,80   

ERROR
AT+CIPCLOSE=0
UNLINK

ERROR
1,CLOSED

AT+CIPSERVER=1,80
no change

OK
AT+CIPSEND=0,6
link is not valid

ERROR
AT+CIPCLOSE=0
UNLINK

ERROR




this is what happened when i first started this but even after AT+RESTORE and AT+RST
same thing happens when i send AT+CIPSEND=0,5

why is it showing link is not valid?
is any good tutorial are there please send the link

Statistics: Posted by mayurimk — Tue Jun 20, 2017 1:37 am


]]>