Is there a way to add a JSON object into the already existing MQTT position data on a Broker?
From this:
Topic: dwm/node/d491/uplink/location
{
"position" : {
"x" : -0.95359111,
"y" : 0.94268495,
"z" : 0.59892517,
"quality" : 82
},
"superFrameNumber" : 446
}
To this:
Topic: dwm/node/d491/uplink/location
{
"id": "d491",
"position" : {
"x" : -0.95359111,
"y" : 0.94268495,
"z" : 0.59892517,
"quality" : 82
},
"superFrameNumber" : 446
}
In essence, I’d like to add the id of the module in question to the mqtt data before being sent.
Thanks,