【发布时间】:2015-12-10 16:16:49
【问题描述】:
我目前正在尝试使用配置管理器 (NECongMan) 和 Fiware Orion 作为上下文生成器来配置 Fiware IoT 代理。我遇到了 NGSI10 subscribeContext 操作的问题。
这是发送到 IoT 代理的请求:
<?xml version="1.0"?>
<subscribeContextRequest>
<entityIdList>
<entityId type="Room" isPattern="false">
<id>Room1</id>
</entityId>
</entityIdList>
<attributeList>
<attribute>temperature</attribute>
</attributeList>
<reference>http://localhost:1028/accumulate</reference>
<duration>PT1H</duration>
<notifyConditions>
<notifyCondition>
<type>ONCHANGE</type>
<condValueList>
<condValue>pressure</condValue>
</condValueList>
</notifyCondition>
</notifyConditions>
<throttling>PT5S</throttling>
</subscribeContextRequest>
IoTBroker 尝试联系 Orion 发出 subscribeContextRequest 但持续时间字符串已更改:
<subscribeContextRequest>
<entityIdList>
<entityId
type="Room"
isPattern="false">
<id>
Room1
</id>
</entityId>
</entityIdList>
<attributeList>
<attribute>
temperature
</attribute>
</attributeList>
<reference>
http://192.168.16.178:8080/ngsi10/notify
</reference>
<duration>
P0Y0M0DT0H59M58.157S
</duration>
<notifyConditions>
<notifyCondition>
<type>
ONCHANGE
</type>
<condValueList>
<condValue>
pressure
</condValue>
</condValueList>
</notifyCondition>
</notifyConditions>
<throttling>
PT5S
</throttling>
</subscribeContextRequest>
但是 Orion 给出了一个错误(无效的负载:持续时间字符串中的语法错误)。你知道如何解决这个问题吗?
【问题讨论】:
标签: fiware fiware-orion