Accessing Configuration Parameters in Parser

Hi there,

I assume Configuration Parameters are simply key/value pairs.

I want to store some parameters and user them in the payload parser script.
If this is possible, how do I access them in the parser?

Also, what is the purpose of the Read/Unread toggle?

Thank you

Hi again mate,

Sure you can, you need to access via device.param

Here an example, you try to find a param with a x as a key

const type = device.params.find(param => param.key === "x");

The read/unread toggle is for alert purposes (may have others as well) you set it if you are aware of it.