So today I got bored, and I decided to mess with my Arduino Yun. I made some code for the client that looks like this
if (client) {
String command = client.readString();
command.trim();
Serial.println(command);
if (command == "test") {
client.print("Working!");
}
client.stop();
}
}
is there a way so I can make it so the website automatically updates a number, e.g. a sensor value ect? If I try to do so, the website is blank unless if the client.stop() is there and it only reads 1 value from the sensor.
The code is the exact same thing that I put earlier. What I want to do, is I want it to post my PING sensor values, without having to refresh the page, since the values don't automatically update.