Arduino Forum

Topics => Home Automation and Networked Objects => Topic started by: a100lin on Jun 28, 2018, 07:14 pm

Title: arduino can't connect php
Post by: a100lin on Jun 28, 2018, 07:14 pm
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.

 
Title: Re: arduino can't connect php
Post by: ieee488 on Jun 29, 2018, 04:55 am
what's your AT+CWMODE?
Title: Re: arduino can't connect php
Post by: a100lin on Jun 29, 2018, 05:41 am
+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.

Title: Re: arduino can't connect php
Post by: ieee488 on Jul 01, 2018, 03:53 pm
bytehost9.com cannot be reached



.