This shows you the differences between two versions of the page.
iotcluj:labs:07 [2016/07/14 12:01] ioana_maria.culic [Use HTML to create a web page] |
iotcluj:labs:07 [2016/07/14 12:42] (current) ioana_maria.culic [Exercises] |
||
---|---|---|---|
Line 94: | Line 94: | ||
- Write a web server and show to the user a static html page. If he requests anything else that that page, show him an error page. | - Write a web server and show to the user a static html page. If he requests anything else that that page, show him an error page. | ||
- Build a web service that allow controlling the device pins. (Hint: without any html page, just write the links in the browser) | - Build a web service that allow controlling the device pins. (Hint: without any html page, just write the links in the browser) | ||
- | - Write a web page to test the service. | + | - /pin?mode=read&pin=pin_number |
+ | - /pin?mode=write&pin=pin_number&value=value | ||
+ | - Extend the service for the Arduino pins also with /arduino/digital/pin and /arduino/analog/pin | ||
+ | - Write a web page to test the service. (Hint: for writing values use html forms with method GET, read about them) | ||
- Write a web server that shows the user the temperature on each refresh. (Hint: use the template node) | - Write a web server that shows the user the temperature on each refresh. (Hint: use the template node) | ||
- Write a web server that shows the user the temperature without refresh. (Hint: use the web html node) | - Write a web server that shows the user the temperature without refresh. (Hint: use the web html node) | ||
- Add a select box to the page, so that the user can select what he wants to see: the temperature or the light. | - Add a select box to the page, so that the user can select what he wants to see: the temperature or the light. | ||