Bluemix MQTT Painter

This example demonstrates connecting and communicating with the IBM Bluemix IoT Platform using MQTT.

Source code

You can browse the source code for this example at the Evothings GitHub repository

The file index.html contains the HTML markup of the app.

What you need

This example runs in Evothings Viewer on Android or iOS and you do not need any specific IoT hardware, but you need an account on IBM Bluemix. You can get a test account for free.

How to get up and running

Follow these steps to get started with this example:

  • Run Evothings Workbench on your desktop/laptop computer.
  • Connect to the Workbench from Evothings Viewer.
  • Copy the "Bluemix MQTT Painter" example by pressing the corresponding Copy button in the Examples tab.
  • Make sure you have a working Bluemix account set up.
  • Use More->Files or the Edit button on the example in your MyApps tab and edit the file app.js to contain proper credentials for your Bluemix account.
  • Press Run and paint away. Multiple devices will see each other painting concurrently on the same canvas.