![]() ![]() Wouldn't it be nice if you could just turn the LED on or off remotely from a portable device like an iPhone or iPad? If so, you're in the right place! However, what if you were far away from that button? It would be a hassle to walk back to the Raspberry Pi and press the button to turn the LED on or off. From here, you would create a program that detects changes in the button's state and determine whether to turn the LED on or off. You connect a button to another GPIO pin. One way to solve this problem is to use a button. Let's say that you have an LED connected to a GPIO pin and you want to turn it on and off. Testing the communication between iOS and Raspberry Pi using MQTT Create a program on Raspberry Pi using PythonĨ. Testing the iOS MQTT app using Simulatorħ. Testing the Mosquitto MQTT Server InstallationĦ.
0 Comments
Leave a Reply. |