Not able to send web page back to client from ESP-01 AP....

tj4shee
Posts: 4
Joined: Tue Oct 27, 2015 11:54 pm
Location: Lexington, KY

Not able to send web page back to client from ESP-01 AP....

Postby tj4shee » Thu Oct 29, 2015 12:09 pm

Hi, I am receiving data from a web browser fine..... but when I try to send data back, nothing happens....

To debug this, I am trying it manually...... I have an FT232RL <=> ESP8266 <=> network <=> iPhone Safari

The iPhone browser simply times out after a bit

Code: Select all

AT+CIPMUX=1


OK
AT+CIPSERVER=1,80


OK
AT+CIPDINFO=1


OK
0,CONNECT

+IPD,0,337,192.168.4.2,50289:GET / HTTP/1.1
Host: 192.168.4.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us
Connection: keep-alive
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1

AT+CIPSTART=0,"TCP","192.168.4.2",50289

ALREADY CONNECTED

ERROR
AT+CIPSENDBUF=0,50

1,0

OK
> <!DOCTYPE html><html><body></form></body></html>
Recv 50 bytes

0,1,SEND OK
AT+CIPCLOSE=0

0,CLOSED

OK
0,CONNECT

+IPD,0,337,192.168.4.2,50290:GET / HTTP/1.1
Host: 192.168.4.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us
Connection: keep-alive
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1

0,CLOSED


Thanks ! TJ

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

Re: Not able to send web page back to client from ESP-01 AP....

Postby ESP_Faye » Fri Oct 30, 2015 10:44 am

Hi,

Could this example help ? http://bbs.espressif.com/viewtopic.php?f=61&t=560

Thanks for your interest in ESP8266 !

tj4shee
Posts: 4
Joined: Tue Oct 27, 2015 11:54 pm
Location: Lexington, KY

Re: Not able to send web page back to client from ESP-01 AP....

Postby tj4shee » Fri Oct 30, 2015 7:48 pm

The example helped previously.... to get where I am.... but not now...... Thanks though....

I actually got the ESP-01 <=> Mac to work once... so I am confident it can work... just need to play a bit more.


TJ

Who is online

Users browsing this forum: No registered users and 2 guests