Chapter 11. Handling Sensor Requests
Chapter 10 is an example of an HTTP server, but it doesn’t use any sensors or actuators. In this chapter, I’ll show how you can add sensor access to your server programs (Figure 11-1).
VoltageMonitor
, which you’ll see later in Example 11-1, shows how to handle GET requests to a sensor resource, more specifically one that represents some voltage—e.g., a voltage produced by an attached potentiometer, photo resistor, or similar sensor. You can use any web browser as a client to inspect the current voltage. After all, a web browser is basically an engine for initiating GET ...
Get Getting Started with the Internet of Things now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.