Qore jni Module 2.4.0
|
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).
These examples are with qdp
, the command-line interface to the Data Provider API.
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},)}'
qdp 'mqtt{url=ssl://eu1.cloud.thethings.network:8883,topic=#,username=my-username,password=my-password}' listen