Hello,
I am trying to see my thermostat on a webpage and control the desired room temperature with two buttons from the HTML page.
I am using a enc28J60 ethernet module, and the ethercard library.
The temperature sensor part of the program is working, but i dont know how to change some varibles using the buttons on the HTML page.
Here is how i write the html page in my arduino web server.
BufferFiller bfill = ether.tcpOffset();
bfill.emit_p(PSTR("HTTP/1.0 200 OK\r\nContent-Type: text/html\r\nPragma: no-cache\r\n\r\n"));
bfill.emit_p(PSTR("
Termostat
"));bfill.emit_p(PSTR("
Temperatura in camera este:
"));bfill.emit_p(PSTR("
Temperatura dorita este:
"));bfill.emit_p(PSTR(""));
bfill.emit_p(PSTR("<input type=submit value="Temp +">"));
bfill.emit_p(PSTR(""));
bfill.emit_p(PSTR("<input type=submit value="Temp -">"));
ether.httpServerReply(bfill.position());
}
Now i dont know how to see what the arduino sees when i push the buttons?
And if arduino doesnt see anything how to make it see my push of the buttons?
If you need more of my code let me know.