我在fi-lab上创建了一个新的Orion实例,以便将它连接到我们管理的CEP实例 . 将要存储在我的Orion实例上的数据必须由orion.lab.fi-ware.eu:1026上现有的Orion Instance提供 .
为了使新的Orion实例中的数据可用,请将订阅请求发送到"principal" Orion实例 . 此订阅是ONCHANGE订阅,请求使用适当的标头令牌到URL http://orion.lab.fi-ware.eu:1026/NGSI10/subscribeContext
请求内容如下:
{ "entities": [ { "type": "location:mytype", "isPattern": "false", "id": "x:y:z" } ], "attributes": [], "reference": "http://a.b.c.d:1026/", "duration": "P1M", "notifyConditions": [ { "type": "ONCHANGE", "condValues": [ "TimeInstant" ] } ] }
当我提出此请求时,响应是:
<subscribeContextResponse> <subscribeResponse> <subscriptionId>53d7473d1860a3cb2359ff11</subscriptionId> <duration>P1M</duration> </subscribeResponse> </subscribeContextResponse>
但是当我从原始Context Broker中的实体'x:y:z'更新属性'TimeInstant'时,我的Orion实例中的类似实体没有变化 . 所以没有从原始猎户座到我的猎户座的更新请求 .
我已经从我的Orion Context Broker实例到Proton引擎完成了这个ONCHANGE订阅,只需将url引用属性从请求更改为接收事件的CEP url .
CB实体与安全组一起工作,该安全组允许从22,8080和1026端口进行访问 .
我认为问题出在URL引用属性中,我已经尝试过a.b.c.d:1026 / NGSI10 / updateContext,我遇到了同样的问题 .
有人可以给我任何关于我的问题的想法吗?
1 回答
基于federation section in the Orion User Manual:
所以我认为使用
"reference": "http://a.b.c.d:1026/v1/notifyContext"
可以解决问题 .