I have an Arduino Uno and for Wifi an ESP8266.
My ESP8266 Firmware is
AT+GMR
AT version:0.40.0.0(Aug 8 2015 14:45:58)
SDK version:1.3.0
Ai-Thinker Technology Co.,Ltd.
Build:1.3.0.2 Sep 11 2015 11:48:04
baund = 115200,
Both NL & CR
Server -- www.linysoft.com
The URL I want to send is either: http://www.linysoft.com/arduino/?light=off
OR http://www.linysoft.com/arduino/?light=on
.
Depending on to the link I send the result should be either ==> on or ==> off on the page http://www.linysoft.com/arduino/light.json
.
Now I want to send an HTTP request (Weblink - http://www.linysoft.com/arduino/?light=on
) so it can write according to that link "on" in the light.json
page.
The AT command I am sending (my wifi module is connected to my wifi automatically):
WIFI CONNECTED
WIFI GOT IP
AT+CWMODE=1
OK
AT+CIPMUX=1
OK
AT+CIPSTART=0,"TCP","www.linysoft.com",80
0,CONNECT
OK
AT+CIPSEND=0,200
OK
>
Here I am getting a problem after this > I can't send **GET /arduino/?light=on**
. I also tried GET /arduino/?light=on HTTP/1.0\r\n
.
After putting this line in the textbox, I press the Enter button or Send Button, but nothing happens.
It is stuck here > for some time. And then it shows me:
OK
> 0,CLOSED
Pin Connection
ARDUINO UNO ESP8266
RX --------------> TX
TX --------------> RX
VCC--------------> 3.3
CH_PD ----------> 3.3
GND -------------> GND