Playbooks / Device to Cloud

Chapter 2 of 4

Connecting devices

1 min read. Sample draft, updated November 2026.

Our sensor's first job isn't measuring temperature. It's proving to the cloud that it's really the sensor it claims to be. Without that, anyone could send fake readings.

Give every device its own identity#

Each device needs its own credentials, ideally a certificate. Never share one key across a fleet. If one device is compromised, you want to block that device, not every device you own.

Provision automatically#

Setting up devices by hand works for ten devices and fails at a thousand. A provisioning service lets a new device introduce itself, prove its identity and get assigned to the right place automatically.

Expect to go offline#

Our sensor will lose its connection. The question is what it does then. A good device buffers readings locally, then sends them in order once it's back, each with the time it was measured, not the time it was sent.

Measured time vs sent timeIf a device was offline for an hour, its readings arrive late. Store when each reading was taken. Otherwise your charts show an hour of nothing, followed by a sudden burst.

Remember

  • One identity per device. Never share keys.
  • Automate provisioning before you need to.
  • Buffer while offline, and timestamp at the source.