通过IDAS注册设备时,Orion CB实体上缺少属性 [英] Missing attributes on Orion CB Entity when registering device through IDAS

查看:75
本文介绍了通过IDAS注册设备时,Orion CB实体上缺少属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在从 http:进行练习中获得预期结果时遇到了一些麻烦. //www.slideshare.net/FI-WARE/io-t-basicexercisesdevelopersweek

注册新设备时没问题,它的实体也已经在Orion CB上成功创建,但是当查询所创建的实体时,不会显示任何设备属性.创建的实体仅具有TimeInstant属性.

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.

发送观察值时,我收到200响应代码,但是由于缺少CB上的Entity属性,因此它显然没有效果.

I get a 200 response code when sending observations but it apparently has noeffect since Entity attributes on CB are missing.

注册设备

  • URL:/iot/devices
  • 方法:开机自检
  • 有效载荷:

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"
            }
        ]
    }
 ]
}

列出设备

  • URL:/iot/devices/14:da:e9
  • 方法: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

  • URL:/ngsi10/contextEntities/Thing12
  • 方法: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"
}
}

推荐答案

问题似乎出在图像orion-psb-image-R4.2上.启动新实例(CentOS-6.3init)并手动安装每个组件后,问题似乎已解决.也许以前的版本之间存在冲突.

The problem seems to be on image orion-psb-image-R4.2. After launching a new instance (CentOS-6.3init) and installing every component manually the problem seem solved. Maybe a conflict between versions in previous instance.

这篇关于通过IDAS注册设备时,Orion CB实体上缺少属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆