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: