Details
-
Type: Monitor
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
Labels:
-
HD-Chapter:IoT
-
HD-Enabler:IDAS
Description
Created question in FIWARE Q/A platform on 25-06-2015 at 15:06
Please, ANSWER this question AT http://stackoverflow.com/questions/31051501/missing-attributes-on-orion-cb-entity-when-registering-device-through-idas
Question:
Missing attributes on Orion CB Entity when registering device through IDAS
Description:
I've had some troubles getting the expected results doing the exercises from http://www.slideshare.net/FI-WARE/io-t-basicexercisesdevelopersweek
No problem when registering a new device, its entity it's also successfully created on Orion CB but when querying for the created Entity non of the device attributes are shown. Created Entity just have TimeInstant attribute.
I get a 200 response code when sending observations but it apparently has noeffect since Entity attributes on CB are 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": "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": "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": [
]
},
"statusCode": {
"code": "200",
"reasonPhrase": "OK"
}
}
2015-09-29 06:05|CREATED monitor | # answers= 2, accepted answer= True