-->
Page 1 of 1

HTML Responses with AT+CIPSEND

PostPosted: Sun May 10, 2015 7:02 pm
by GeoReb
Hi everyone and anyone that can help me out,

I am using an ESP-03 with AT Version: 0.21.0.0 & SDK Version: 0.9.5
I am trying to give my web browser a HTML response.

I set up the ESP using the following AT commands...

Code: Select allAT+CWMODE=3
AT+CWJAP="SSID","PASSWORD"
AT+CIPMUX=1
AT+CIPSERVER=1,80

I can then type it's local IP address into my browser and I get a bunch of data streaming into the ESP! Woooo!

Code: Select all+IPD,0,331:GET / HTTP/1.1
Host: 192.168.4.1
Connection: keep-alive
Accept-Encoding: gzip, deflate
ect...

BUT I then want to send a confirmation back, like "OK".
So, as per Google/Youtube, I use the following AT commands...

Code: Select allAT+CIPSEND=0,109

I get a ">" symbol as I expected and then I type in the HTML code...

Code: Select all<!doctype html>\ <html>\ <head>\ <title>Confirmation</title>\ </head>\ <body>\ <H1>OK</H1>\ </body>\ </html>

I get the response below and then close the connection...

Code: Select allbusy s...
SEND OK

AT+CIPCLOSE=0

0,CLOSED

But I don't get anything displayed in the web browser!!!!!

PLEASE TELL ME WHAT I'M DOING WRONG!?!

Many thanks in advance,
George

Re: HTML Responses with AT+CIPSEND

PostPosted: Sun May 10, 2015 11:18 pm
by villTech
maybe your data length is not 109.

Re: HTML Responses with AT+CIPSEND

PostPosted: Thu May 21, 2015 3:57 pm
by GeoReb
Yep it is - to check I sent just 5 characters (hello) and that didn't display in the browser either :/

Re: HTML Responses with AT+CIPSEND

PostPosted: Thu May 28, 2015 1:37 am
by M.Ilyas
Hi I have the same problem. When I use the command AT+CIPSEND = datalength the terminal shows a greater then symbol and them i send my GET header, I receive send ok in response but nothing gets updated. Please Help