Get your device ready
- Get the latest CoreCDP image that supports building Node.js and Node-RED image from the: MultiTech Developer Site.
- From a Linux host computer, install the software, set up the environment and build the Node.js image files for the Conduit hardware.
- Run SSH on your computer and log in to the Conduit:ssh firstname.lastname@example.org
- Update the firmware on the Conduit with the new Node.js/Node-RED supported build.
IBM Watson IoT Platform Quickstart connection
- From your computer browse to: http://192.168.2.1
- Open the WAN section. Configure the APN and activate the cellular device based on inputs from your carrier.
- From the UI, click on Node-RED to open a separate window. The Node-RED UI displays the details for the device at:
- Create a flow connecting your serial device or mDot data to an MQTT node that is configured for IBM Watson IoT Platform. Alternately, you can download sample flows from the developer site.
- The MAC address for the conduit is already pre-configured from the factory. Go to the dashboard and make a not of it.
To view the data, simply visit Quickstart and type in the MAC address of your chosen device.
Register your Device In Watson IoT Platform
To explore and make use of full capabilities of Watson IoT Platform, we need to setup and register your device(s) in it. This section shows how you can setup the same.
Carry out the steps present in this recipe to register your device(s) in IBM Watson Internet of Things Platform.
At this step, we have successfully created the Watson IoT service and registered your device(s) in it.
IBM Watson IoT Platform Registered connection
- Once you have access to an IBM Watson IoT Platform organization through Bluemix or the Marketplace, you can click to ‘Add a new device’ on the IoT organization dashboard.
- During the device registration process you will get file configuration information containing the following details, copy these when you get them.
- Organization ID
- Device Type ID
- Device ID
- Authentication Method
- Authentication Token
- Use the device registration information to configure the node in your flow that connects to the IBM Watson IoT Platform.
- Deploy your configuration updates within Node-RED.
- Now the MultiConnect Conduit sample is running and supports receiving of commands from Watson IoT.
- The LED on your device blinks at a fixed rate in response to commands sent from the Watson IoT.
- You can write an application which sends the following payload:
to the topic:
- The numeric value represents the rate that the LED blinks per second. A value of zero (0) will stop the LED from blinking.
In a few minutes this tutorial will help you connect your device to Quicktart in IBM's Internet of Things (IoT) Foundation and show you real-time data from your device. It'll then let you register your device ready to write your first application.