Building Arduino Projects for the Internet of Things

(Steven Felgate) #1

© Adeel Javed 2016 75
A. Javed, Building Arduino Projects for the Internet of Things,
DOI 10.1007/978-1-4842-1940-9_5


CHAPTER 5


IoT Patterns: Realtime Clients


An important pattern of IoT is the ability to sense data and make it available to users in
realtime, such as with home monitoring solutions, perimeter security applications, and
inventory alerts.
In this chapter, you are going to build an example of this pattern, an intrusion
detection system. Figure  5-1 shows components of an intrusion detection system. The
first component is an Arduino device that has a motion sensor attached to it. The second
component is an MQTT broker. You will use the publish-subscribe model of MQTT for
sending intrusion detection notifications in realtime (for details, see Chapter 3 ). The final
component of your IoT application is an Android app that subscribes to the MQTT broker
and shows an alert notification to users whenever Arduino detects an intrusion and
publishes a message to the MQTT broker.


Figure 5-1. Components of the intrusion detection system

Free download pdf