Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QueryContext() duplicates attributes for entities with more that 1 attribute #21

Open
smirnp opened this issue Mar 19, 2019 · 0 comments

Comments

@smirnp
Copy link

smirnp commented Mar 19, 2019

Hi!

I'm using the 'docker run -t -p 8065:8065 -p 8060:8060 -p 5984:5984 fiware/iotbroker:standalone-dev -p iotbroker_historicalagent="enabled"' as described here

I'm adding the following context element:

{
   "attributes":[
      {
         "metadata":[
            {
               "name":"units",
               "value":"dB",
               "type":"units"
            }
         ],
         "contextValue":"110691535297671",
         "name":"noiseLevel",
         "type":"float"
      },
      {
         "metadata":[
            {
               "name":"units",
               "value":"volt",
               "type":"units"
            }
         ],
         "contextValue":"110691535787180",
         "name":"batteryLevel",
         "type":"float"
      }
   ],
   "entityId":{
      "isPattern":false,
      "id":"noiseSensor",
      "type":"NoiseSensor"
   },
   "domainMetadata":[

   ]
}

And then performing the following POST query to the http://localhost:8060/ngsi10/queryContext:

{
  "entities": [
    {
      "id":"noiseSensor",
      "isPattern": true
    }
  ]
}

The result I get - the contextElement with 2, 3, 5, 7 .... attributes - depends on the number of queryContext requests I've already done.

Thanks for help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant