How can I automatically republish MQTT messages from specific topics using RabbitMQ with the MQTT plugin?

I’m using RabbitMQ with the MQTT plugin enabled to act as an MQTT broker.

What I want to achieve is the following:

  • When a message is published to certain predefined topics (e.g., sensor/temperature, sensor/humidity),
  • I want that message to be automatically republished to other topics (e.g., archive/sensor/temperature, archive/sensor/humidity).

Is there a way to configure RabbitMQ or its MQTT plugin to do this kind of automatic message republishing or routing without writing an external service?

Read more here: Source link