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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.