Uplink Decoder

The Javascript decodeUplink() function is called when a data uplink message is received from a device. This function decodes the binary payload received from the end device to a human-readable JSON object that gets send upstream to the application.

The returned value must be a JSON object with the 'data' key and the function name must be 'decodeUplink' with a single parameter.

You only need these two requirements to make possible proper no-code integration. You can automatically synchronize the sensor values and other platform-specific information to visualize on Qubitro Portal.

An example function:

function decodeUplink(input) {
  return {
    data: {
      temperature: input.bytes[0],
      humidity: input.bytes[1]
    },
    warnings: [],
    errors: []
  };
}

Creating Payload Formatter

✨ Support and Feedback

If you have further questions or suggestions, feel free to join πŸ‘‡ -> Qubitro Community Discord via this invitation link.

Last updated