MQTT is a lightweight publish and subscribe messaging transport which has gained a lot traction with IoT developers and cloud vendors. It's designed for constrained devices and low-bandwidth, high-latency or unreliable networks.
Helium provides a hosted, free MQTT Broker for every deployment to give developers the ability to easily integrate data from Helium sensors into their existing MQTT deployments. This short guide will covers how to use Helium MQTT Channel.
In order to deploy and use this Channel, you'll need the following:
By defaut every Helium Dashboard account comes pre-visioned with a Helium MQTT Broker. To view it, go to the Channels interface and navigate to Active Channels. Then click on the Helium MQTT and scroll down to see its properties.
Here's an example of the MQTT Settings you'll see exposed by the Helium MQTT Channel
Use all of the following settings to integrate data from the Helium MQTT Broker with your preferred MQTT Client.
|Helium MQTT Settings||Usage|
||Use this to connect to the Helium MQTT Broker exposed by this Channel.|
||Use this to publish/subscribe to all of the data from all the devices in this Channel.|
||Use this to subscribe to messages from a given Atom on the Helium MQTT Broker.|
||Use this topic to publish message to a given Atom on the Helium MQTT Broker.|
MQTT Connection String is actually a concatenation of a username, password, host, and port. For example, take a look at the following sample connection string:
In the above:
MQTT Port Types
There are three possible ports to use as part of the MQTT Connection String.
||MQTT over HTTPS (commonly referrred to as "MQTTS")|
||Websockets over SSL (commonly referrred to as "WSS")|