package
1.6.2
Repository: https://github.com/kubemq-io/kubemq-sources.git
Documentation: pkg.go.dev

# README

Kubemq MQTT Source

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 KeyRequiredDescriptionExample
hostyesmqtt connection host"localhost:1883"
topicyesset mqtt subscription topic"queue"
dynamic_mappingyesset if to map mqtt topic to kubemq channel"true"
usernamenoset mqtt username"username"
passwordnoset mqtt password"password"
client_idnomqtt connection string address"client_id"
qosnoset mqtt subscription QoS"0"

Example:

bindings:
  - name: mqtt-kubemq-event
    source:
      kind: messaging.mqtt
      name: mqtt-source
      properties:
        host: "localhost:1883"
        dynamic_map: "true"
        topic: "queue"
        username: "username"
        password: "password"
        client_id: "client_id"
        qos: "0"
    target:
      kind: kubemq.events
      name: target-kubemq-events
      properties:
        address: "kubemq-cluster:50000"
        client_id: "kubemq-http-connector"
        channel: "events.mqtt"
    properties:
      log_level: "info"

# Functions

No description provided by the author
No description provided by the author

# Structs

No description provided by the author