O'Reilly logo

Internet of Things Programming with JavaScript by Ruben Oliva Ramos

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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:

  1. http://192.168.1.111:8099/ledon
  2. http://192.168.1.111:8099/ledoff
    Controlling outputs from android using your Raspberry Pi Zero

The interface created in APP Inventor will be similar to the following screenshot:

Controlling outputs from android using your Raspberry Pi Zero

The final circuit connections would look like the following screenshot:

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required