Building Arduino Projects for the Internet of Things

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

Similarly drag and drop the Click to Refresh button from the storyboard on the
ViewController.swift file, as shown in Figure  7-30.


As shown in Figure  7-31 , from the properties popup, select Action from Connection
as you need to add code to respond whenever the user taps on the button. In the Name
field, enter refreshParkingSpotsCount and click Connect.


Figure 7-30. Drag and drop button from storyboard


Figure 7-31. Action properties

Free download pdf