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.
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
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
Ground and First Floor
St. Vincent Plaza
319 St. Vincent Street
Glasgow, G2 5LD