Qore jni Module 2.4.0
Loading...
Searching...
No Matches

Introduction to the MqttDataProvider Module

The MqttDataProvider module provides a data provider API for MQTT servers for sending and receiving MQTT messages.

This data provider provides MQTT functionality with the mqtt factory and data provider with the same name, supporting asynchronous MQTT events and messaging (class MqttDataProvider).

MQTT Data Provider Examples

These examples are with qdp, the command-line interface to the Data Provider API.

API Example: Send a Message
qdp 'mqtt{url=ssl://eu1.cloud.thethings.network:8883,username=my-username,password=my-password}' send message 'topic=v3/username@ttn/devices/bl-001/down/push,payload={downlinks=({f_port=15,frm_payload="AP8ACgo=",priority=NORMAL},)}'
API Example: Listen for Messages
qdp 'mqtt{url=ssl://eu1.cloud.thethings.network:8883,topic=#,username=my-username,password=my-password}' listen

Release Notes

MqttDataProvider v2.0

  • added support for the data provider action catalog API (issue 4808)

MqttDataProvider v1.0

  • initial release of the module