I am about to develope a custom Adapter for the edge, that will handle incomming messages and map those to a specified internal protocol (that means the MQTT payload has a specific format).
Now I was wondering if it is possible to chain adaperts after each other? For example the integrated MQTT Connector receives a message and instead of forwarding this to the internal MQTT-Broker, the message is forwarded to my custom protocol adapter.
Maybe this example is not the best practice, but it clearely shows my intention.
This is actually not supported and probably not trivial to implement. However, we have payload modifications/transformations on the roadmap for HiveMQ Edge.
Do you want to modify JSON payload into some other formats?
Diego from HiveMQ Team
Exactly! Here is an example:
The Payload I get is:
"data": 1 },
"data": "00010010" }
My goal is to reduce this Payload to:
So I want to extract: data → paypload → /iolinkmaster/port/iolinkdevice/pdin → data
And rename this to a different name.
Maybe you have an idea how to achieve this or if this will be supported by your extension.