I had some problems with the expected results doing exercises from http://www.slideshare.net/FI-WARE/io-t-basicexercisesdevelopersweek
There is no problem registering a new device, its essence, it was also successfully created on CB Orion, but there are no device attributes when requesting the created Entity. The created object has the TimeInstant attribute.
I get a 200 response code when sending observations, but it apparently has noeffect, since there are no Entity attributes on CB.
Device registration
- 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" } ] } ] }
Device listing
- 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": "/" }
CB inquiry
- 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" } }