-->
Page 1 of 2

Help sending data to php

PostPosted: Sat May 13, 2017 4:23 pm
by Panseptos
Hi all,

I'm trying to send data to my database using a php script that expects two values: a temp1 and a hum1 using the GET method. I`m using AT commands to connect to my access point, but the problem is that I don't get a +IPD reply from the ESP8266 and of course the data dooes not reach php.

Here are the at commands used:
Code: Select allAT+RST
OK
0,CLOSED
ΖεΦΤτ()ύ��!‡@HΜ ��"‚Δ�
AT+CWJAP="Rafina","4112703241"
OK
AT+CIPSTART="TCP","192.168.42.21",80
CONNECT
OK
AT+CIPSEND=68
OK
> GET /writeSql.php?temp1=99&hum1=99 HTTP/1.1\r\nHost: 192.168.42.21\r\n\r\n
busy s...

SEND OK
CLOSED


Is the CIPSEND size wrong?

Thank you!

Re: Help sending data to php

PostPosted: Sun May 14, 2017 2:50 pm
by atexit8
Are you using a USB-TTL converter?
Which terminal program are you using to send the AT commands?

I hope that you are not using an Arduino Uno as your USB-TTL converter.

Re: Help sending data to php

PostPosted: Sun May 14, 2017 4:00 pm
by Panseptos
atexit8 wrote:Are you using a USB-TTL converter?
Which terminal program are you using to send the AT commands?

I hope that you are not using an Arduino Uno as your USB-TTL converter.


I`m using the Arduino IDE and an Arduino Mega!

Re: Help sending data to php

PostPosted: Sun May 14, 2017 4:51 pm
by atexit8
Panseptos wrote:
atexit8 wrote:Are you using a USB-TTL converter?
Which terminal program are you using to send the AT commands?

I hope that you are not using an Arduino Uno as your USB-TTL converter.


I`m using the Arduino IDE and an Arduino Mega!



And?

Perhaps http://www.martyncurrey.com/arduino-esp ... #more-1493 will provide clues