Is it possible to parse float from a variable to PHP?
When parsing 't' it shows as 26 in PHP.
But if I insert a fixed value ex. 26.9, then the value is parsed correct.
It seams to be a problem when using variables.
void loop()
{
float t = analogRead(1)/10;
Serial.println(t);
if (client.connect(server, 80))
{
Serial.println("connected");
client.print("GET /update.php?");
client.print("tmp=");
client.print(t);
client.println("HTTP/1.1 200 OK");
client.println("Host: localhost");
client.println("User-Agent: Arduino\r\n");
client.println("Accept: text/html\r\n");
client.println("Connection: close");
client.stop();
client.println();
Serial.println("Client closed!");
}