The IoT Bridge includes an MQTT Client to connect to existing MQTT brokers for a wide range of MQTT connectivity use cases. Whether connecting to a MQTT broker to receive telemetry from devices, or connecting to a broker to push LPWA device data to other applications, the MQTT Client
service is highly flexible for your needs.
retain
bit.The MQTT Client service allows configuration of the topic subscriptions, and connection parameters for your MQTT client.
mqtt://<address>:1883
or mqtt+ssl://<address>:8883
depending on your broker's configuration.mqtt-client-publish
event will be generated.This event fires when a topic is published to the MQTT client from the broker.
{
"topic": "device/asdf91321/telemetry",
"payload": {
"location": {
"lat": 43.123123,
"lng": -80.12314
},
"temp": 23.3
}
}
object
, string
, or byte[]
depending on the source data.Publish a message on the specified topic.
// Publish an object to a topic as JSON.
mqttc.publish('myclient','device/config', { pollInterval: 30 })
// Publish a string to a topic.
mqttc.publish('myclient','device/config', 'poll,30')
The following events are considered billable:
Client functionality is improving constantly, if there is an MQTT feature you would like to see, please open a support ticket.