Skip to content

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

License

Notifications You must be signed in to change notification settings

pvtom/mqttbridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

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"

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages