Device Configuration Parameters

Hi, I add new Configuration Parameter to my device, but how I can use it at my own Payload Parser or at dashboard?

You can access it by the device.params variable inside the payload parser.

Payload Parser

Live Inspector

1 Like

If you want to find a specific parameter in your device, you can do this:

// search for the param with key test and return it.

const test_param = device.params.find((param) => param.key === "test");

// check if the param really exist, so you don't throws errors in the code.
if (test_param) {
// output to live inspector the value of the param test
  console.log(test_param.value);
}
1 Like