Skip to Main Content
Hands-On Internet of Things with MQTT
book

Hands-On Internet of Things with MQTT

by Tim Pulver
October 2019
Intermediate to advanced content levelIntermediate to advanced
350 pages
9h 5m
English
Packt Publishing
Content preview from Hands-On Internet of Things with MQTT

Using one tilt switch

Let's start by attaching one of the tilt switches. Using one instead of all four at the same time makes it easier to verify that it is working and to understand how it works:

  1. Connect one of the tilt switches in the same way as in the following diagram—one pin connected to ground, the other to pin 0:

Arduino MKR WiFi 1010 connected to a tilt switch (this image was created with Fritzing) License: (https://creativecommons.org/licenses/by-sa/3.0/)

In reality, this will look something like this:

Arduino MKR WiFi 1010 and ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical IoT Hacking

Practical IoT Hacking

Fotios Chantzis, Ioannis Stais, Paulino Calderon
Internet of Things (IoT) Fundamentals

Internet of Things (IoT) Fundamentals

Jerome Henry / Rob Barton

Publisher Resources

ISBN: 9781789341782Supplemental Content