Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] Plugin that only modify messages in uplink direction on an broker in bridge setup

Hello Waqar,
There is a branch, It was written to enable changes in messages leaving the broker. Maybe this is what you need?

On Tue, Jun 7, 2022 at 11:39 PM Waqar Rashid <waqar.rashid@xxxxxxxxxxxxxxx> wrote:
Hello Community,
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

Back to the top