MQTT
Kubemq MQTT source provides a MQTT subscriber for processing MQTT's messages.

Prerequisites

The following are required to run events source connector:
    kubemq cluster
    kubemq-sources deployment
    MQTT Broker

Configuration

MQTT source connector configuration properties:
Properties Key
Required
Description
Example
host
yes
mqtt connection host
"localhost:1883"
topic
yes
set mqtt subscription topic
"queue"
dynamic_mapping
yes
set if to map mqtt topic to kubemq channel
"true"
username
no
set mqtt username
"username"
password
no
set mqtt password
"password"
client_id
no
mqtt connection string address
"client_id"
qos
no
set mqtt subscription QoS
"0"
Example:
1
bindings:
2
- name: mqtt-kubemq-event
3
source:
4
kind: messaging.mqtt
5
name: mqtt-source
6
properties:
7
host: "localhost:1883"
8
dynamic_map: "true"
9
topic: "queue"
10
username: "username"
11
password: "password"
12
client_id: "client_id"
13
qos: "0"
14
target:
15
kind: kubemq.events
16
name: target-kubemq-events
17
properties:
18
address: "kubemq-cluster:50000"
19
client_id: "kubemq-http-connector"
20
channel: "events.mqtt"
21
properties:
22
log_level: "info"
Copied!
Last modified 10mo ago