List of Listings
Chapter 2. Hello, World Wide Web of Things
Listing 2.1. Polling for the temperature sensor
Listing 2.2. Polling and displaying a sensor reading
Listing 2.3. Connecting to a WebSocket and listening for messages
Listing 2.4. Register to a WebSocket and get real-time temperature updates
Listing 2.5. Simple HTML form to send a command to an actuator
Listing 2.6. Send an HTTP POST with JSON payload from a form
Listing 2.7. A basic device browser
Listing 2.8. Retrieve and parse device metadata using AJAX JSON calls
Chapter 3. Node.js for the Web of Things
Listing 3.1. A Hello World HTTP server in Node.js
Listing 3.2. A simple HTTP server returning JSON data
Get Building the Web 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.