i use a linux machine with a localhost php server installed. Wifi machine is connected to the ESP-01 module (access point mode) and i can send several datas to the Arduino via the ESP-01 set as:
sendData("AT+RST\r\n",2000,DEBUG); // reset module
sendData("AT+CWMODE=2\r\n",1000,DEBUG); // configure as access point
sendData("AT+CIFSR\r\n",1000,DEBUG); // get ip address
sendData("AT+CIPMUX=1\r\n",1000,DEBUG); // configure for multiple connections
sendData("AT+CIPSERVER=1,80\r\n",1000,DEBUG); // turn on server on port 80
The php server can send data by GET method and Arduino receives pin=11:
http://192.168.4.1:80/?pin=11
But, now, i would like to send to the php server datas from the Arduino. I tried this configuration but in my sketch but, it returns, error.
sendData("AT+CIPSTART=0,'TCP','http://localhost',80\r\n",1000,DEBUG);
Serial monitor:
ERROR
AT+CIPSTART=0,'TCP','http://localhost/test_php',80
Link type ERROR
So please, how can i send and receive data with my ESP-01 module?