【发布时间】:2015-06-16 15:15:32
【问题描述】:
我有一个小问题。我正在订阅 Orion Context Broker,但我对回调 URL 有一个奇怪的问题: 此代码适用于教程:
{
"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"
}
}
}
任何建议请:)谢谢。
【问题讨论】:
标签: fiware fiware-orion