Here we can all chat about fixing the AT+ command structure and the associated responses.

User avatar
By eric976
#15441 Hi
Im looking for a solution since last month. I don't know how I can solve this, I need help.
I am using the latest firmware that was available on 25 Dec 2014, the AT Firmware V 0.9.5.0, with an ESP 01.

I have a PHP page in a server in Digital Ocean. It receives a GET request and save the information in a MySQL database. It works, I made tests.
Firstly I put the ESP as a client of my wifi network.
And type these commands:
AT+CIPMUX=1
AT+CIPSTART=1,"TCP","104.236.18.97",80
AT+CIPSEND=1,57
>GET /projetoquarto/salvadados.php?ti=25&te=24&ui=61&ue=73

I tried with another ,80 in the end of the CIPSTART
I tried with HTTP/1.1 too.

I always have Bad Request as result or a message saying that all works, but it didn't...
What can I do?

I am waiting a return.
Thanks in advance.
User avatar
By MichelBen
#15524 Hi,

in cde
AT+CIPSEND=1,nn
'nn' must include "\r\n"

this work for me :
=============
Code: Select allGET /ESP HTTP/1.1\r\n
Host: 192.168.1.14\r\n
\r\n

where length is 41.

Code: Select allAT+CIPSTART="TCP","192.168.1.14",8080\r\n
AT+CIPSEND=41\r\n
GET /ESP HTTP/1.1\r\n
Host: 192.168.1.14\r\n
\r\n


I don't know why I have to repeat the line "host ....."
It seems date must finished with an empty line '\r\n'