Building Arduino Projects for the Internet of Things

(Steven Felgate) #1
CHAPTER 7 ■ IOT PATTERNS: ON-DEMAND CLIENTS

As soon as your Arduino sends the next HTTP request to the server, the count will
change. Click the Refresh button on your iOS app. As shown in Figure  7-39 , it will show no
open spots.


Summary


In this chapter, you learned about the on-demand pattern of IoT applications. This
pattern is a good fit if your users are not required to be fed data and instead are provided
the latest data only when they request it. The smarter parking system that you built in this
chapter is a good example of this pattern, because users are only concerned with open
parking spot information when they are looking for a parking spot; otherwise, they are
not concerned.


Figure 7-39. App screen in simulator with no open spots

Free download pdf