Hi,
I have the following three lines of code in my sketch that sends data to/from my browser. The code works as is but I want to change it a bit.
Right now the first line prints out the variable temperatureF and second line adds the word degrees. Then the third line is a hyperlink with the label "Update Temperature" which I use to update the temperature reading.
Example current output:
86.7 degrees
Update Temperature <hyperlinked
What I'd like to do is eliminate the Update Temperature line and hyperlink the "temperatureF degrees" line.
What I'm trying to get:
86.7 degrees <hyperlinked
I'm able to hyperlink the word degree but I can't find a syntax that will also let me hyperlink the variable temperatureF. This is what I'm struggling with.
client.print(temperatureF);//Temperature
client.println(" degrees
");//Units
client.println("<a href=\"/?R8\"\">Update Temperature</a>");
I hope this makes sense.
Thanks,
BrianB