我有一个小问题。林做了订阅猎户座语境经纪人,我有一个奇怪的问题,回调的网址: 此代码教程作品:Orion Context Broker - 订阅
{
"entities": [
{
"type": "Room",
"isPattern": "false",
"id": "Room1"
}
],
"attributes": [
"temperature"
],
"reference": "http://localhost:1028/accumulate",
"duration": "P1M",
"notifyConditions": [
{
"type": "ONTIMEINTERVAL",
"condValues": [
"PT10S"
]
}
]
}
但这个代码不工作:
{
"entities": [
{
"type": "Room",
"isPattern": "false",
"id": "Room1"
}
],
"attributes": [
"temperature"
],
"reference": "http://192.168.1.12:1028/accumulate?name=dupex",
"duration": "P1M",
"notifyConditions": [
{
"type": "ONTIMEINTERVAL",
"condValues": [
"PT10S"
]
}
]
}
唯一的区别是参考现场: “参考”: “192.168.1.12:1028/accumulate?name=dupex”
我:
{
"subscribeError": {
"errorCode": {
"code": "400",
"reasonPhrase": "Bad Request",
"details": "Illegal value for JSON field"
}
}
}
任何建议请:)谢谢。
0123在回答中描述的变通办法中,我们已将此作为Orion存储库中的问题,以考虑问题并最终提供更好的解决方案:https://github.com/telefonicaid/fiware-orion /问题/ 1015。对这个问题的评论值得欢迎! – fgalan
Orion 1.2(将于2016年6月初发布)将启用该用例。有关它的信息已被添加到答案文中(查看“编辑”)。 – fgalan