ESP-01 AP Mode - Can't send data back to client
Posted: Thu Oct 29, 2015 8:21 am
Hi, I have also posted this on Espressif's site... but no answer yet....
I have an ESP-01 - for now, connected directly to my pc via FT232RL for debugging.... but will eventually be controlled via a Teensy LC...
I have set the ESP up as an AP and can successfully receive GET requests from a web browser attaching to it.... when I receive the GET, I am recording the remote IP and Port from the client.
When I try to send data back (your typical <html></html>), it says it successfully sent it, but nothing shows up on the web browser.
Here is the UART log....
I am using Safari on my iPhone as the web browser.... its odd, because after I do the CIPCLOSE, the web browser seems to send another request using the next port..... Don't understand that.
Thanks for any and all help !
TJ
I have an ESP-01 - for now, connected directly to my pc via FT232RL for debugging.... but will eventually be controlled via a Teensy LC...
I have set the ESP up as an AP and can successfully receive GET requests from a web browser attaching to it.... when I receive the GET, I am recording the remote IP and Port from the client.
When I try to send data back (your typical <html></html>), it says it successfully sent it, but nothing shows up on the web browser.
Here is the UART log....
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
I am using Safari on my iPhone as the web browser.... its odd, because after I do the CIPCLOSE, the web browser seems to send another request using the next port..... Don't understand that.
Thanks for any and all help !
TJ