|Re: [mosquitto-dev] Plugin that only modify messages in uplink direction on an broker in bridge setup
It's my first mail in this mailing list. I am also new to mosquitto so please guide me in the right direction.
I am trying to develop a plugin that will add timestamps (in json) to messages on Gateway Broker. This Gateway Broker has a bridge connection with a Cloud Broker and will forward certain topics to the Cloud Broker. I want the gateway broker to only add timestamps to messages that are sent to the cloud broker.
I started from the payload modification plugin and now have a basic working plugin but it adds timestamps to all messages and I need a way to only add them to uplink (Gateway Broker -> Cloud Broker).
Does anyone have suggestions? Currently, the only idea I have is to check the topic of each message in the plugin and based on that make the decision. I am sorry if this is a very basic question. I am just getting started.
mosquitto-dev mailing list
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/mosquitto-dev
Back to the top