Search code examples
fiwarefiware-orion

Can I have a multivalued attributes in IotAgent-UL an OrionCB?


My situation is as follows:

I have a device with multiple attributes. One of those attributes is called DTC (diagnostic trouble codes) that is intended to store a different quantity of error codes each time a meassure is sent. I mean, at a certain moment the device could send 0, 1 or more error codes.

What must I do in order to make DTC attribute something like a list?

I need to do that in IoTAgentUL and Orion CB.


Solution

  • In Orion you can use arrays to store multivalued attributes

    example:

    {
       "myAttr": {
         "type": "List",
         "value": ["a", "b", "c"]
       }
    }
    

    I don't know whether the UL protocol supports multivalued attributes.