This post provides an overview and learning objectives of Chapter 7 from my book Building Arduino Projects for the Internet of Things.

Introduction

Compared to real-time IoT pattern that provides end users data instantaneously, on demand pattern provides end users data only when requested. IoT applications built using this pattern get information by either directly accessing the device or getting it from a pre-stored location. On demand, the pattern is useful when your application is not actively looking for data, instead only accesses it when needed.

In this chapter, you are going to build an example of this pattern, a Smarter Parking System. The figure below shows a high-level diagram of all components involved in building this system. The first component is an Arduino device that monitors the status of parking spots with proximity sensor and publishes it to a server using HTTP request. The second component is a server with services to store parking spots data and an interface service that provides the number of open parking spots. The final component is an iOS app that accesses open parking spots data and displays it to users when requested.

CodifyThings - Building Arduino Projects for the Internet of Things (IoT)

Learning Objectives

At the end of this chapter you will be able to:

  • Read data from a proximity sensor
  • Send sensor data to a server using HTTP
  • Display sensor data in an iOS app using HTTP

Final Product

CodifyThings - Building Arduino Projects for the Internet of Things (IoT)  CodifyThings - Building Arduino Projects for the Internet of Things (IoT)