---+ A WEB Server and the HTTP Protocol ---++ Exercise 1: Write a Hello World WEB Server Follow the explanation in [[WEBServer]] and create the 3 versions of the Hello World Web Server. ---++ Exercise 2: Provide Measurement Data on the WEB Page Modify the WEB server to provide temperature and humidity measured with the SHT30. The easiest way to accomplish this is static text like in the Hello World HTML page into which the measurements can be inserted. This can be done with _[[https://github.com/pfalcon/utemplate][utemplates]]_, which are provided by _[[https://github.com/pfalcon/picoweb][picoweb]]_. Have a look in the _utemplates_ README.MD and in the examples directory of picoweb to understand how this is implemented. This is how your WEB site for SHT30 measurements might look like (screen dump of the solution script): <img alt="sht30WebSite.png" height="254" src="%ATTACHURL%/sht30WebSite.png" title="sht30WebSite.png" width="587" /> ---++ Exercise 3: Ajax The above exercise has a major flaw: For each measurement you must reload the entire page. It would be much nicer it the WEB page could be updated whenever a new is requested. -- %USERSIG{UliRaich - 2020-05-27}% ---++ Comments %COMMENT%
Attachments
Attachments
Topic attachments
I
Attachment
History
Action
Size
Date
Who
Comment
png
sht30WebSite.png
r1
manage
15.5 K
2020-05-27 - 19:53
UliRaich
This topic: IoT_Course_English
>
WebHome
>
Exercises
>
AWEBServer
Topic revision: r5 - 2020-06-04 - UliRaich
Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback