[Backlogmanager] [FIWARE-JIRA] (HELP-8870) [fiware-stackoverflow] Error in subscribeContext

José Ignacio Carretero Guarde (JIRA) jira-help-desk at jira.fiware.org
Mon May 29 11:29:00 CEST 2017


     [ https://jira.fiware.org/browse/HELP-8870?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

José Ignacio Carretero Guarde resolved HELP-8870.
-------------------------------------------------
    Resolution: Done

> [fiware-stackoverflow] Error in subscribeContext
> ------------------------------------------------
>
>                 Key: HELP-8870
>                 URL: https://jira.fiware.org/browse/HELP-8870
>             Project: Help-Desk
>          Issue Type: Monitor
>          Components: FIWARE-TECH-HELP
>            Reporter: Backlog Manager
>            Assignee: Fermín Galán
>              Labels: fiware, fiware-orion
>
> Created question in FIWARE Q/A platform on 10-12-2015 at 17:12
> {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/34206712/error-in-subscribecontext
> +Question:+
> Error in subscribeContext
> +Description:+
> I'm currently trying to configure the Fiware Iot Broker with the Configuration Manager (NECongMan) and Fiware Orion as the context producer. I'm having a problem with the NGSI10 subscribeContext operation.
> This is the request sent to the IoT Broker:
> <?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>
> The IoTBroker tries to contact Orion issuing a subscribeContextRequest but the duration string is changed:
> <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>
> But Orion gives an error (invalid payload: syntax error in duration string). Do you have any idea how to resolve the issue?



--
This message was sent by Atlassian JIRA
(v6.4.1#64016)


More information about the Backlogmanager mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy