MQTT is a very well known standard protocol, however there is no standard for the payload structure of the msgs.
I have a MQTT broker works with payload in a format like that: {"value": "ON"} The Device works with payload in a different format like that {"ON"}
I need a way to add the "value:" on the msgs coming from the device. I need a way to remove the "value:" on the msgs coming from the broker.
How could I manipulate or edit the msgs from the device to make them understandable by the broker? I would need an "intermediary broker" doing this manipulation I imagine
Which options would you recommend? Thanks.
question from:https://stackoverflow.com/questions/65860686/how-to-manipulate-modify-mqtt-msgs