Hi guys,
Im using an arduino uno and Esp8266 ESP-01 module to send data to database using GET method and AP commands,everything is OK, but i don’t know how to read a GET or POST response via an URL
For example : read php file if it sends 1 or 0.
Could you help please ?
The code im using to send data to database :
String getData = "GET /parking/rfid.php?rfid=" + rfid + "&op=" + op;
Serial.println(getData);
sendCommand("AT+CIPMUX=1", 5, "OK");
sendCommand("AT+CIPSTART=0,\"TCP\",\"" + HOST + "\"," + PORT, 16, "OK");
sendCommand("AT+CIPSEND=0," + String(getData.length() + 4), 4, ">");
esp8266.println(getData); delay(1500); countTrueCommand++;
sendCommand("AT+CIPCLOSE=0", 5, "OK");
Thanks