Hi, as previous topic I had solved the problem by adding a line code as below (cliente.println("HTTP/1.1");):
sensors.requestTemperatures();
Celcius = sensors.getTempCByIndex(0);
if (cliente.connect(serv, 80)) { //Connecting at the IP address and port we saved before
Serial.println("temp-connected");
cliente.print("GET /garden/Components/insertwtemp?"); //Connecting and Sending values to database
cliente.print("wtemperature=");
cliente.print(Celcius);
cliente.println("HTTP/1.1");
//Printing the values on the serial monitor
Serial.print("Water Temperature= ");
Serial.println(Celcius);
cliente.stop(); //Closing the connection
}
else {
// if you didn't get a connection to the server:
Serial.println("connection failed");
}
But the outcome in database as shown in picture below, without this line code I cant save my data to database
Is there any solution to solve it? Much appreciate