Publishing to MQTT Channels

Publishing data to MQTT channels allows you to queue data to be sent to non-IP subscribers.

Once data is queued, it will be transmitted the next time the subscriber becomes available.

This section:

  • Details the channel to which data is published.
  • Explains the requirement to Base64 encode the data being sent to your subscribers.
  • Details the format to use when publishing data.

Info

Publishing to MQTT channels is conducted using your chosen MQTT client.

Please refer to your MQTT client's documentation for information on how to publish data to channels.

Tip

The non-IP subscribers on your account are subscribed to the available MQTT channels automatically.

To send data to your non-IP subscribers you are only required to publish data to the relevant channel.



MQTT Publication Channel

Data that is being sent to a non-IP subscriber is published to the /lora/ channel.



Base64 Encoding

Data that is sent and received via the Connectivity Management MQTT broker must be Base64 encoded.

Base64 encoding is used as it minimises the risk of the data causing parsing errors as it traverses the network.

This means that any data you send to the broker must be Base64 encoded. This can be achieved using an online tool such as Base64Decode.



Data Format

Note

Data that is sent to the MQTT broker must be Base64 encoded.

The following format must be used when sending data to a non-IP subscriber:

Sample Data Format
 {
    f_port: '<fPort>',
    data: '<Base64 encoded data>'
}
On This Page

Pelion
Ground and First Floor
St. Vincent Plaza
319 St. Vincent Street
Glasgow, G2 5LD

© Copyright 2021 Pelion. All rights reserved