Chapter 12
Building an App That Interacts with a Raspberry Pi
Gheorghe Chesler
In this chapter, we will write an app that communicates with a Raspberry Pi device on the local Wi-Fi network that allows us to flip the lights on and off on a custom module with LEDs. This might not seem like a significant accomplishment, but keep in mind that just as you can flip on and off some LED lights, you can control any other connected devices in a similar fashion.
About Your Raspberry Pi
Raspberry Pi is a miniaturized ARM computer that can run different operating systems. By default, this runs a variant of Debian Linux customized for this device, called Raspbian. On the Raspberry Pi 2 you can also install Ubuntu, RiscOS, and recently even a slimmed-down, ...
Get Program the Internet of Things with Swift for iOS now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.