Send data as access point- please! we struggling for days!
Posted: Thu Oct 15, 2015 3:32 am
Please any idea !
We have set the esp as a server(access point) and we send data to it from a browser/mobile phone.
Everything works great till the point where the esp has to send back the respond .
So, we send a GET request to the esp, and he always get the request, ,but the browser/mobile is not getting his respond.
Here we set it as a server with :
The browser then connects to "myname" and send a get request :
http://192.168.4.1/setx:sety
the esp gets it and try to send a respond :
The respond is not seen by any browser! also tried
Nothing is successful .
Please, any idea ????
We have set the esp as a server(access point) and we send data to it from a browser/mobile phone.
Everything works great till the point where the esp has to send back the respond .
So, we send a GET request to the esp, and he always get the request, ,but the browser/mobile is not getting his respond.
Here we set it as a server with :
Code: Select all
AT+CIPMUX=1
OK
AT+CWMODE=3
OK
AT+CIPSERVER=1,80
OK
AT+CWSAP="myname","mypass",5,2
OK
The browser then connects to "myname" and send a get request :
http://192.168.4.1/setx:sety
the esp gets it and try to send a respond :
Code: Select all
AT+CIPSEND=0,47
> HTTP/1.1 content \r\n Content-Type:text/xml\r\n
The respond is not seen by any browser! also tried
Code: Select all
.HTTP/1.1 200 OK \r\n
Nothing is successful .
Please, any idea ????