Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Fiware orion 猎户座通知天鹅座_Fiware Orion_Fiware Cygnus - Fatal编程技术网

Fiware orion 猎户座通知天鹅座

Fiware orion 猎户座通知天鹅座,fiware-orion,fiware-cygnus,Fiware Orion,Fiware Cygnus,我遵循了Orion中关于实体创建/更新和订阅的官方指南,他们正在工作,我得到了成功的回复。但是猎户座不会向天鹅座发送通知 我是不是漏了一步 以下是我正在使用的基本脚本: 创建实体 { "contextElements": [{ "type": "Room", "isPattern": "false", "id": "2FebRoom", "attributes": [{ "name": "temperature", "type": "float", "value": "8

我遵循了Orion中关于实体创建/更新和订阅的官方指南,他们正在工作,我得到了成功的回复。但是猎户座不会向天鹅座发送通知

我是不是漏了一步

以下是我正在使用的基本脚本:

创建实体

{
"contextElements": [{
"type": "Room",
"isPattern": "false",
"id": "2FebRoom",
"attributes": [{
    "name": "temperature",
    "type": "float",
    "value": "888"
}]
}],
"updateAction": "APPEND"
}
{
"contextElements": [
    {
        "type": "Room",
        "isPattern": "false",
        "id": "2FebRoom",
        "attributes": [
            {
                "name": "temperature",
                "type": "float",
                "value": "111"
            }
        ]
    }
],
"updateAction": "UPDATE"
} 
订阅实体

更新实体

{
"contextElements": [{
"type": "Room",
"isPattern": "false",
"id": "2FebRoom",
"attributes": [{
    "name": "temperature",
    "type": "float",
    "value": "888"
}]
}],
"updateAction": "APPEND"
}
{
"contextElements": [
    {
        "type": "Room",
        "isPattern": "false",
        "id": "2FebRoom",
        "attributes": [
            {
                "name": "temperature",
                "type": "float",
                "value": "111"
            }
        ]
    }
],
"updateAction": "UPDATE"
} 
我可以在更新操作后在Orion中查询新值,但Cygnus没有收到任何通知,这会是什么问题


非常感谢

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

只是确认一下。。。我不知道每次更新都使用不同的温度值(即,不总是111,如问题帖子所示)。对吗?谢谢“天鹅座URL”是文字值还是实际URL的分散值。在第二种情况下,你能编辑你的问题帖子以包含实际的URL吗?若你们想将你们的公共知识产权分散,你们可以使用类似“A.B.C.D.”的东西。谢谢你好,Fermin,是的,我们每次发送不同的值,我们不想发布我们的公共天鹅座url,所以我将其更改为天鹅座url:)我现在将更改为A.B.C.D。下一步是检查Orion是否发送通知。该程序取决于Orion版本。请更新您的帖子,使其包含您在问题中使用的Orion版本(即您通过
contextBroker--version
获得的版本),好吗?
timesSent
中的增量表示Orion正在发送(或试图至少发送)通知。A.B.C.B中的5050端口是否已打开(在安全组中-如果适用-和本地fiwewall中),以接收来自orion.lab.fiware.org的连接?警察局。您不需要使用NGSIv2,但考虑到它是API的更新(和改进)版本,它可能是一个很好的理想选择。但是,请注意,NGSIv2仍处于测试状态,因此现有功能可能会发生一些变化。如果@dmtzz能够确认所有功能现在都正常工作,那就太好了,但即使没有它,答案也描述了问题的最可能原因。