Controlling outputs from android using your Raspberry Pi Zero
In this section, we will see how to control our outputs connected to the Raspberry Pi, using the control.js
script running in the Node.js
server.
The request that we need to control over the LED output using the android application are as follows:
http://192.168.1.111:8099/ledon
http://192.168.1.111:8099/ledoff
The interface created in APP Inventor will be similar to the following screenshot:

The final circuit connections would look like the following screenshot:
