Skip to content

Latest commit

 

History

History
48 lines (34 loc) · 1.48 KB

README.md

File metadata and controls

48 lines (34 loc) · 1.48 KB

MQTT Bridge - Tool to transfer data from an MQTT broker to another MQTT broker

GitHub sourcecode GitHub last commit GitHub issues GitHub pull requests GitHub

This software module transfers data for selected topics from an MQTT broker to another MQTT broker.

If you don't like to configure your MQTT broker for bridging you can choose this tool.

The solution is based on the mqttsub tool (https://gist.github.com/pvtom --> mqttsub.c)

Prerequisite

mqttbridge needs the library libmosquitto. For installation please enter:

sudo apt-get install libmosquitto-dev

Cloning the Repository

git clone https://github.com/pvtom/mqttbridge.git
cd mqttbridge

Compilation

To build the program use

gcc mqttbridge.c -o mqttbridge -lmosquitto

Usage

Please start the program with

./mqttbridge

The available parameters will be displayed.

Example

./mqttbridge --src_host host1 --dst_host host2 -t "smarthome/#" -t "devices/+/temperature"