Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Useful MQTT Tools for the IBM Watson IoT Platform

DZone's Guide to

Useful MQTT Tools for the IBM Watson IoT Platform

So many IoT devices, so much communication. Interacting with the IBM Watson platform is, well... elementary!

· IoT Zone
Free Resource

Learn how Bluetooth mesh helps you create industrial-grade networks. Download the mesh overview.

For the development of Internet of Things applications it’s often useful to simulate devices. Below are two options which are easy to use.

The instructions describe how to connect to the IBM Watson IoT Platform on Bluemix. In all cases you need to create your own Internet of Things Platform service and create your own device type and device.

MQTT Helper

With the MQTT Helper application on Bluemix you can connect to a MQTT broker and subscribe and publish to MQTT topics. The trick is to know the right information for the form.

  • Server: 1o56n8.messaging.internetofthings.ibmcloud.com (replace “1o56n8” with your IoT organization name)
  • Port: 1883
  • Client ID: d:1o56n8:TestDeviceType:TestDevice (replace the org, device type and device id)
  • Username: “use-token-auth”
  • Password: your device’s authentication token

Here is an example how to publish messages as JSON:

  • Topic: iot-2/evt/messageId122/fmt/json
  • Payload: {hello:”world”}

mqtttool1

In the dashboard of the IoT service you can see the connection status and received messages.

mqtttool4

MQTTLens

MQTTLens is a Google Chrome application which is similar to the MQTT Helper application. The same instructions as above apply.


mqtttool2

mqtttool3

For a deeper look into Bluetooth mesh, check out this technical insight for developers.

Topics:
iot ,mqtt ,watson ,ibm ,cloud ,bluemix

Published at DZone with permission of Niklas Heidloff, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}