8000 GitHub - bakterian/mqttWatchdog: Mqtt client application that logs errors in case mqtt topic is silent for too long or payload indicates error condition
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Mqtt client application that logs errors in case mqtt topic is silent for too long or payload indicates error condition

License

Notifications You must be signed in to change notification settings

bakterian/mqttWatchdog

Repository files navigation

MQTT-ECHO

Mqtt republishing utility

Simple Node Js utility to re-publish one mqtt topic from one broker using a different broker The keys of the published json can be re-named and the data can be published under a specified topic. Supports forwarding of nested json values.

The target broker client can subscribe to an additional topic which will indicate that the mqtt echo is connected and operational.

Release 1.0.0

Initial release of code and configuration examplews. Was Win 7 with with a TTN Broker source and Mosquitto Target broker.

How to Install

Clone or unzip repository. Open shell or the windows cmd, cd inside and type:

npm install

Configuration

All of the broker specific data are to be kept in a seperate json file. A "exampleConfig.json" config file was attached for reference. The cofig file path should be be passed as -c input argument.

How to run

Open shell or the windows cmd, cd inside and type:

node mqttForwarder.js -c <PATH_TO_CONFIG_FILE>

About

Mqtt client application that logs errors in case mqtt topic is silent for too long or payload indicates error condition

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0