rtlamr-collect icon indicating copy to clipboard operation
rtlamr-collect copied to clipboard

Add support for publishing messages to MQTT

Open toxuin opened this issue 2 years ago • 1 comments

This adds ability to publish raw message to MQTT server in JSON format under EndpointId-specific topics.

toxuin avatar Jun 29 '22 22:06 toxuin

Since this current implementation does not much more but puts the raw JSON data to an endpoint-scoped topic, I think having a topic-prefix should be an ok compromise to converting everything in the project to an interface.

MQTT part would not even do anything if the MQTT server address is not set - that is obviously to not interfere with existing configs where MQTT is not required.

In my mind, InfluxDB data should always flow (it's kind of the whole point of this project) and then MQTT would provide an extra data access when necessary - therefore such non-sophisticated implementation.

Thanks for quick review!

toxuin avatar Jun 30 '22 04:06 toxuin