This project goes over what the Internet of Things is and gives a tutorial on how to use it to remotely control
an LED from your phone.
The technology covered in this project can be used to control all manner of devices, but for simplicity and cost we will be controlling an LED. If you want to later use this code in adding larger devices like lamps to the IoT, then you could do so using relays like the one here(3).
Start by getting out your breadboard and Pi. Plug the LED into the breadboard and connect its ground side to one of the Pi’s ground pins using one of your male to female cables. Then connect your LED to your resistor, and then to the GPIO 17 pin.