1

I have a JSON formatted as this one:

{
"contextElements": [
    {
        "type": "environment",
        "isPattern": "false",
        "id": "labMax",
        "attributes": [
        {
            "name": "users",
            "type": "vector",
            "value": [{"userId":"0001", "status":"0"},{"userId":"0002", "status":"0"}]
        },
        {
            "name": "rooms",
            "type": "vector",
            "value": [{"room1": [ {"id":"room1"}, {"owner":"1"}]},{"id":"room2"}, {"owner":"2"}]
        },
        {
            "name": "sensors",
            "type": "vector",
            "value": [
          {"sensor1": [ {"id":"1"}, {"location":"room1"},{"value":"11"},{"status":"ok"}]},
          {"sensor2": [ {"id":"2"}, {"location":"room1"},{"value":"22"},{"status":"update"}]}
          ]
        }

        ]
    }
],
"updateAction": "APPEND"
}

I have also a subscription ONCHANGE on the attribute "sensors" and when I update it, without changing any value inside the vector, it causes a notification. Probably this is a wrong behaviour because a subscriber should be only notified when a value changes. On the other side, if I use strings or integer as attributes values, it works correctly.

4

1 回答 1

0

至少在 Orion 0.16.0 之前,这是一种已知行为。Orion github.com 存储库中有一个关于它的问题。

于 2014-11-13T15:27:34.803 回答