fiware - Missing attributes on Orion CB Entity when registering device through IDAS -
i've had troubles getting expected results doing exercises http://www.slideshare.net/fi-ware/io-t-basicexercisesdevelopersweek
no problem when registering new device, entity it's created on orion cb when querying created entity non of device attributes shown. created entity have timeinstant attribute.
i 200 response code when sending observations apparently has noeffect since entity attributes on cb missing.
registering device
- url: /iot/devices
- method: post
- payload:
json
{ "devices": [ { "device_id": "14:da:e9", "entity_name": "thing12", "entity_type": "thing12type", "protocol": "pdi-iota-ultralight", "timezone": "europe/madrid", "attributes": [ { "name": "weight", "type": "double", "object_id": "weight" }, { "name": "valid", "type": "boolean", "object_id": "valid" } ] } ] }
listing devices
- url: /iot/devices/14:da:e9
- method: get
json
{ "device_id": "14:da:e9", "entity_name": "thing12", "entity_type": "thing12type", "protocol": "pdi-iota-ultralight", "timezone": "europe/madrid", "attributes": [ { "name": "weight", "type": "double", "object_id": "weight" }, { "name": "valid", "type": "boolean", "object_id": "valid" } ], "service": "openiot", "service_path": "/" }
querying cb
- url: /ngsi10/contextentities/thing12
- method: get
json
{ "contextelement": { "type": "thing12type", "ispattern": "false", "id": "thing12", "attributes": [ { "name": "timeinstant", "type": "iso8601", "value": "2015-06-25t13:07:18.354970z" } ] }, "statuscode": { "code": "200", "reasonphrase": "ok" } }
the problem seems on image orion-psb-image-r4.2. after launching new instance (centos-6.3init) , installing every component manually problem seem solved. maybe conflict between versions in previous instance.
Comments
Post a Comment