我有一個小問題。林做了訂閱獵戶座語境經紀人,我有一個奇怪的問題,回調的網址: 此代碼教程作品: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