Skip to content

Commit

Permalink
updates to sensor server
Browse files Browse the repository at this point in the history
  • Loading branch information
tigoe committed Jul 28, 2024
1 parent 897f62d commit 465eb71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Some sketches will add other constants to that file as well. These files are ign
* [SimplerWebServer](https://github.com/tigoe/Wifi_examples/tree/main/Servers/SimplerWebServer) - a stripped-down example of how to respond to HTTP requests
* [NetworkClientLogger](https://github.com/tigoe/Wifi_examples/tree/main/Servers/NetworkClientLogger) - listens on a number of popular ports (HTTP, SMTP, SSH, etc) and logs to an SD card all client connnection attempts
* [UptimeServer](https://github.com/tigoe/Wifi_examples/tree/main/Servers/UptimeServer) - a web server that reports the device's uptime when it receives an HTTP request.
* [SensorWebServerWithCSSandJS](https://github.com/tigoe/Wifi_examples/tree/main/Servers/SensorWebServerWithCSSandJS) - a web server that reports reads sensors and delivers them as JSON when it receives an HTTP request. This example also shows how to serve an index.html, styles.css, and script.js file separately.
* [SensorWebServerWithCSSandJS](./Servers/SensorWebServerWithCSSandJS/) - a web server that reports reads sensors and delivers them as JSON when it receives an HTTP request. This example also shows how to serve an index.html, styles.css, and script.js file separately.

## TCP and UDP Examples
* [simpleTCPClient](https://github.com/tigoe/Wifi_examples/tree/main/simpleTCPClient) - makes a TCP connection to a remote * host and sends a message every ten seconds
Expand Down
2 changes: 1 addition & 1 deletion Servers/SensorWebServerWithCSSandJS/readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Sensor Web Server With CSS and JS

This example shows how to make a web server program to serve sensor values. Unlike the [Uptime Web Server](../UptimeServer/), which only responds to one request, or the [Simpler Web Server](../SimplerWebServer/) example, which responds to two, this example shows how to parse and respond to multiple possible request. Specfically, it responds to a request for the root, `/`, or the index page, `index.html`. It also serves a `styles.css` page and a `script.js` page, and a custom request for `readings`. Using this approach, you can construct a more complex API for the server.
This example ([link to code here](../SensorWebServerWithCSSandJS/)) shows how to make a web server program to serve sensor values. Unlike the [Uptime Web Server](../UptimeServer/), which only responds to one request, or the [Simpler Web Server](../SimplerWebServer/) example, which responds to two, this example shows how to parse and respond to multiple possible request. Specfically, it responds to a request for the root, `/`, or the index page, `index.html`. It also serves a `styles.css` page and a `script.js` page, and a custom request for `readings`. Using this approach, you can construct a more complex API for the server.


## The Arduino Sketch
Expand Down

0 comments on commit 465eb71

Please sign in to comment.