The article is ONLY an introduction that how can we make our Android Mobile set to be an IoT device . A IoT device can collect data from other THINGS ( IoT Devices ) and make that data valuable . The collection of data is based on API Connections with other IoT devices .
Although there are many other open source resources to connect the devices but we are discussing here about Node-RED . It is a programming tool for connecting hardware devices, APIs and online services in new and interesting ways.
Node-RED is operable in multiple ways , either we can run it locally ( i.e Node-RED on Raspberry Pi ) or using it on cloud ( i.e Node-RED running on an Azure Virtual Machine instance ).
Our objective here is to configure Node-RED flow editor with a securely connected android device through Bluemix account on IBM Watson IoT Platform .
The IBM Watson IoT Platform can communicate our applications with data aggregation, collected by our connected devices, sensors, and gateways. The Watson APIs can make it super easy to get devices connected to IBM cloud. We can use our applications in real-time and Watson REST APIs can communicate with our devices and consume the data we have received.
Let’s start the set-up , first we need to choose platform , here we are choosing Internet of Things Platform Starter
Now we set up and configure our first Watson IoT Platform instance from the dashboard. To open the dashboard, go to Internet of things Cloud Foundry App , which we have been created , mentioned above in IBM Cloud, click Launch
After Launching following screen will display the status of boards ;
Now first we have to add device types , Go to Browse Devices ;
Add Device Types
Now It’s time to create interface ; – add property
The device add summary;
IBM Watson IoT platform is now being created to add device ;
Connecting the device
The IBM Watson Cloud Dashboard after connecting the android Mobile
Now it’s time to connect with the devices through API
We can use our own custom API or we can try default API
The Call Operation ;
Node-RED Flow chart ;