猎户座通知天鹅座

时间:2016-02-03 08:36:55

标签: fiware-orion fiware-cygnus

我已经按照Orion中关于实体创建/更新和订阅的官方指南,他们正在工作,我得到了成功的回复。但猎户座并没有向天鹅座发送通知。

我在这里错过了一些步骤吗?

这些是我正在使用的基本脚本:

创建实体

{
"contextElements": [{
"type": "Room",
"isPattern": "false",
"id": "2FebRoom",
"attributes": [{
    "name": "temperature",
    "type": "float",
    "value": "888"
}]
}],
"updateAction": "APPEND"
}

订阅实体http://orion.lab.fiware.org:1026/v1/subscribeContext

{
"entities": [
    {
        "type": "Room",
        "isPattern": "false",
        "id": "2FebRoom"
    }
],
"attributes": [
    "temperature"
],
"reference": "http://A.B.C.D:5050/notify",
"duration": "P1M",
"notifyConditions": [
    {
        "type": "ONCHANGE",
        "condValues": [
            "temperature"
        ]
    }
],
"throttling": "PT5S"
}

更新实体

{
"contextElements": [
    {
        "type": "Room",
        "isPattern": "false",
        "id": "2FebRoom",
        "attributes": [
            {
                "name": "temperature",
                "type": "float",
                "value": "111"
            }
        ]
    }
],
"updateAction": "UPDATE"
} 

我可以在更新操作后查询Orion中的新值,但是Cygnus没有收到任何通知,会出现什么问题?

非常感谢

1 个答案:

答案 0 :(得分:0)

问题是由orion.lab.fiware.org的传出通知中的暂时中断引起的。问题已经解决了。