Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mosquitto-dev] Plugin that only modify messages in uplink direction on an broker in bridge setup
  • From: Waqar Rashid <waqar.rashid@xxxxxxxxxxxxxxx>
  • Date: Tue, 7 Jun 2022 21:39:08 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; 1; spf=pass; dmarc=pass action=none; dkim=pass; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed;; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=70N7KHeqUu3gSAMKi5gXQXPQopf/KJnbSVhxcpi82bU=; b=U3J6GbnunWWcfRUq2PYnIRZpDYS41xae/1RfnG/VujA+pv7IXV2GOZPlPRQXl3tJ7wglsGm6xaGl4UPaGKWbLJ62Kopr/fVBD1DL2uV3lOv/ILr8QKpeUtkx8J928hPu7gaojLeTUkBrnkcEDJfhirEEPdbxH3HtZxbRSTmmDG8Hhge9kTBhDaw5NDzP/otlm200jdLOCF4zW8Fi7rdarHpnSO8p8ULN8fKgyallaAV0lFFJ87sOtHpe/hTCdhqon5QxW9B9K0Eu7ojpb9yvQdn0t902H8NnIpMOBUlosM+yZ63wQJqSlBWkAlCgS9il1nIEwkzLCS11DmPsNlvY8A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901;; cv=none; b=egA8qua+vW40emu4fvhBFZqE+cchPUlI36lm9BDyB0m5Fmh+JnpoTE4Hvr5VODgQwCzGBr2XcNEj5b3tFPwQP+oMhDLYnD1SYW/p6czOR3/xRZY0kqLugOdpn4bApcnn1rGEy3X8Agy4vg2pc2PYooQ0TUw0fEn1Nr4M5z/Xwva808MmILI7BS1JxbD0wxXSocQWo/5vl39hJLAKFaBqmCAmek05i8+TQ1lWs81rNNcr+lCLOc3jc5QfFHm+MCrnJPGqQE8mAVpn1FXFUSIaoxZDqnEX6LY2luG7TN8tQ0FuosiBOUa4mm2FIdE3DYPl7ILfeuVsMFVpFd2rxcFUig==
  • Delivered-to: mosquitto-dev@xxxxxxxxxxx
  • List-archive: <>
  • List-help: <>
  • List-subscribe: <>, <>
  • List-unsubscribe: <>, <>
  • Msip_labels:
  • Thread-index: AQHYerWTjNTRJ7TXakihPPKD/vKpFg==
  • Thread-topic: Plugin that only modify messages in uplink direction on an broker in bridge setup

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.


Back to the top