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

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: 49
Registered: September 2013

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


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: Fri Dec 04 15:29:19 GMT 2020

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

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

Back to the top