Go Down

Topic: arduino can't connect php (Read 390 times) previous topic - next topic

a100lin

Jun 28, 2018, 07:14 pm Last Edit: Jun 29, 2018, 05:48 am by a100lin
I use arduino mega 2560 and esp8266 to output data to PHP by AT command.But nothing happened. Here is the instruction

input:   AT+CIPSTART="TCP","waterheat.byethost9.com",80
output: CONNECT
                OK

input:   AT+CIPSEND=27
output: OK
                >
 
input:   GET /Insert.php?login=eee
output: Recv 27 bytes
             SEND OK
             CLOSED

No return value, PHP is not started, if I directly enter the URL in Google

input:   waterheat.byethost9.com/Insert.php?login=eee
output: eee

Where is the problem?
Thanks in advance.

 

ieee488


a100lin

#2
Jun 29, 2018, 05:41 am Last Edit: Jun 29, 2018, 05:49 am by a100lin
+CWMODE:1

It have responded to connect thingspeak or goole.
like:
+IPD,1:0CLOSED
or
+IPD,566:HTTP/1.0 301 Moved Permanently...

but,I connect "waterheat.byethost9.com/Insert.php?login=eee" no return value, PHP is not started.


ieee488

bytehost9.com cannot be reached



.

Go Up