首页 文章

猎户座通知天鹅座

提问于
浏览
3

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

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

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

create entity

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

subscribe entity 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"
}

update entity

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

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

非常感谢

1 回答

  • 0

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

相关问题