Hex Payload Decoder
The Hex Payload Decoder allows you to convert incoming hex string payloads into valid JSON data
Last updated
The Hex Payload Decoder allows you to convert incoming hex string payloads into valid JSON data
Last updated
The Hex Payload Decoder allows you to convert incoming hex string payloads into valid JSON data for non-LoRaWAN data sources.
If a is enabled, data will be processed before storage. The decoder applies first, and then any defined transformation function modifies the data before it is stored in Qubitro.
Avoid unnecessary logic or external dependencies that could slow down execution.
Use arithmetic operations and bit shifts to convert hex values into readable fields.
Keep payload formatters simple and lightweight.
Need help reviewing your custom formatter? Our team can assist in checking your code for compatibility. Reach out via the .
Data must be published as JSON with the following structure:
The key must be "payload_hex"
in the incoming JSON payload. Any other key name will not be recognized by the system.
A decoder function processes incoming hex payloads and returns a structured JSON object.
The decoder function receives a single parameter: input
, which contains:
bytes → A byte array representing the raw payload received.
To ensure compatibility with Qubitro’s no-code suite, the output should be a key-value JSON object.
Incoming payload
Formatter code
Decoded payload
Select the Function Type
Open the device details page in the Qubitro Portal.
Click the Functions tab.
Click Create Function and select Decoder Function.
Choose Hex Payload Decoder as the formatter type.
Write the Decoder Code
Enter your custom decoder function in the editor.
Adjust the function to match your device’s payload format.
Save and Apply the Function
Click Save to apply the decoder function.
Once saved, Qubitro will automatically apply the decoder to all incoming data for the assigned device.