- a Victron CerboGX specific reflector
- does not require Victron VRM or CerboGX interface to be running
- proper keepalive messages transmitted
- will probably deprecate once apparition can handle multiple mqtt brokers
- automatically subscribes to full CerboGX MQTT stream
- requires the CerboGX MQTT broker to be enabled
- CerboGX Modbus TCP Server is not required
To build:
# pre-requisites:
# boost from git@github.com:rburkholder/libs-build.git
# git@github.com:rburkholder/repertory.git
git clone git@github.com:rburkholder/mqtt2mqtt.git
cd mqtt2mqtt
mkdir build
cd build
cmake ..
cd ..
# compose a mqtt2mqtt.cfg as below
# then run:
build/src/mqtt2mqtt
mqtt2mqtt.cfg file:
mqtt_in_id = <unique id>
mqtt_in_host = <hostname/ip address>
#mqtt_in_topic = # # is comment, cannot be escaped, so use coded default wildcard
mqtt_out_id = <unique id>
mqtt_out_host = <hostname/ip address>
mqtt_out_username = <username>
mqtt_out_password = <password>
mqtt_out_topic = <topic prefix> # no trailing slash