IBM Watson IoT Platform With MQTT -- Ameba Arduino

Introduction: IBM Watson IoT Platform With MQTT -- Ameba Arduino

IBM® Watson™ IoT Platform is, by the official definition,

“A foundational cloud offering that can connect and control IoT sensors, appliances, homes, and industries. Built on IBM Cloud, Watson IoT Platform provides an extensive set of built-in and add-on tools. Use these tools to process IoT data with real-time and historical analytics, extract key performance indicators (KPIs) from your data, add “smarts” in the cloud for non-smart products, and securely connect your own apps and existing tools to the Watson IoT Platform infrastructure.” (IBM, 2020)

This platform provides easy web interface to register, connect and visualize our IOT devices. For quick start and simple try-out, registration is not necessary, we may just run our program to get the device ID needed for this platform.

Supplies

Ameba arduino dev. board x1

Step 1: Arduino Example

In this example, we will take a look at how to make use of IBM Watson IOT platform for out IOT project.

Open the MQTT example “File” -> “Examples” -> “AmebaMQTTClient” -> “ibm_watson_iot_quickstart”

Make sure the Wi-Fi information is properly filled in and we are ready to upload the code to ameba.

Once uploading finished, open a serial monitor and we shall see information as shown on the second image above.

Important:

Please take note of the string of characters on the first line of the picture above -- “clientId:quickstart:iotsample-ameba:ac35ee15608e”

“ac35ee15608e” is the device ID as well as the MAC address of the ameba board used here which will NOT be the same for other cases, so make sure to copy down the device ID displayed on your serial monitor.

Step 2: IBM IOT Platform

Next, we click the IBM IOT platform link provided here and open our browser:

https://quickstart.internetofthings.ibmcloud.com/#...

Paste the device ID we just copied into the box highlighted above.

If the device ID keyed in is correct, some fake temperature data that our ameba published will be visualized like this.

Done! now you can feel free to add your own sensor and upload its data to this platform as you like~

Be the First to Share

    Recommendations

    • Maps Challenge

      Maps Challenge
    • Fandom Contest

      Fandom Contest
    • Backyard Contest

      Backyard Contest

    Comments