Mosquitto to COSM Bridge
Categories: Energy Monitoring | Linux Code | Weather Station
Over the last couple of weeks I have been writing a MQTT to COSM bridge. Unfortunately (I think because of COSM) it has only been staying up and running for a few hours at a time.
My original code is here:
Thanks for Mosquitto developer and god, Roger Ligh (@ralight) t, I was pointed in the direction of the mosquitto topic bridging. It's all handled by the broker and is absolutely brilliant!
In the mosquitto.conf file you just need to add code similar to below:
## MB COSM Bridge configuration
Make sure you set the QOS value (which in this case is 0) as it wouldn't work with out it. Thanks also to Nick O'Leary (@knollery).
The full tribulations can be found on the MQTT google groups https://groups.google.com/forum/?fromgroups=#!topic/mqtt/_CqQkNtqmk8 .