Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mosquitto » MQTT Broker - Topic remap or message edit
MQTT Broker - Topic remap or message edit [message #1801134] Mon, 14 January 2019 13:22 Go to next message
BhanuKiran Chaluvadi is currently offline BhanuKiran ChaluvadiFriend
Messages: 1
Registered: January 2019
Junior Member
Hi,

I would edit my topic message.
Initial topic and pay load looks like this

Topic: 02000001000047F9/update/zb/dev/6/ldev/humidity/data/humidity Payload: {"key":"humidity","name":"Relative Humidity","type":"double","unit":"% RH","access":"r","lastUpdated":"2019-01-11T09:29:18.327+01:00","value":34.0}


I would like to include the device id into the message , in this case device id is 6.

After editing it should look like this
{ "id":6, "key":"humidity","name":"Relative Humidity","type":"double","unit":"% RH","access":"r","lastUpdated":"2019-01-11T09:29:18.327+01:00","value":34.0}


I am not sure how to achieve this with out writing an extra client . Can u it be done inside the broker ?
Re: MQTT Broker - Topic remap or message edit [message #1801214 is a reply to message #1801134] Tue, 15 January 2019 13:28 Go to previous message
Roger Light is currently offline Roger LightFriend
Messages: 90
Registered: September 2013
Member
Hi,

I'm sorry, there isn't currently a mechanism in the broker for modifying topics like this.

Regards,

Roger
Previous Topic:bridge on raspberry pi is not bridging
Next Topic:Mosquito does not start when any ip interface is down
Goto Forum:
  


Current Time: Thu Apr 25 17:15:12 GMT 2024

Powered by FUDForum. Page generated in 0.03195 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top