Chapter 12. In the cloud, in the browser, and beyond

 

This chapter covers

  • Using a cloud-based service (resin.io) to deploy and manage an application across a fleet of devices
  • Bleeding-edge web platform technologies for interacting with hardware, including Web Bluetooth and the Generic Sensor API
  • Building the Physical Web with the open Eddystone protocol and Bluetooth Low Energy (BLE) beacons
  • Controlling hardware from a web page using Web Bluetooth and Puck.js
  • Reading data from and writing commands to a BLE device

For this chapter, you’ll need the following:

  • 1 BeagleBone Black and 5 V power supply
  • 1 Espruino Puck.js
  • 1 Adafruit BMP180 multisensor breakout board
  • 1 half-size breadboard
  • Jumper wires

This chapter opens up some grand vistas. Yet this grandness of scale bumps up against limited space. Topics merely touched upon here are entire specialties; there’s enough to learn about each to fill books, shelves, or even entire libraries: security; the web standards process; the intricacies of Bluetooth and Bluetooth LE (BLE) architecture; provisioning and managing fleets of IoT devices, at scale.

As such, this chapter doesn’t mark the end of a learning journey but is instead a springboard for subsequent adventures. Its first half pulls back the curtains on the world of cloud-based IoT service offerings. The second half wears a futurist’s hat, pushing at the edges of what we can do on the web and in a browser today, and at what might be coming tomorrow.

12.1. IoT and the cloud

12.2. Containerized deployment with resin.io

12.3. Hardware and the web browser

12.4. Exploring Bluetooth LE with Puck.js

12.5. Pushing the frontiers of JavaScript and hardware

Summary