This shows you the differences between two versions of the page.
iotcluj:labs:07 [2016/07/14 12:18] ioana_maria.culic [Exercises] |
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) | ||
- | - /pin/read/:pin_number | + | - /pin?mode=read&pin=pin_number |
- | - /pin/write/:pin_number/:value | + | - /pin?mode=write&pin=pin_number&value=value |
- | - Write a web page to test the service. | + | - 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. | ||