[Backlogmanager] [FIWARE-JIRA] (HELP-16685) [fiware-stackoverflow] Context broker is ignoring value, fiware orion and iotagent

Fernando Lopez (JIRA) jira-help-desk at jira.fiware.org
Mon Apr 27 10:40:00 CEST 2020


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

Fernando Lopez reassigned HELP-16685:
-------------------------------------

    Assignee: Backlog Manager

> [fiware-stackoverflow] Context broker is ignoring value, fiware orion and iotagent
> ----------------------------------------------------------------------------------
>
>                 Key: HELP-16685
>                 URL: https://jira.fiware.org/browse/HELP-16685
>             Project: Help-Desk
>          Issue Type: Monitor
>          Components: FIWARE-TECH-HELP
>            Reporter: Backlog Manager
>            Assignee: Backlog Manager
>              Labels: fiware, fiware-orion
>
> Created question in FIWARE Q/A platform on 22-04-2020 at 09:04
> {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/61359704/context-broker-is-ignoring-value-fiware-orion-and-iotagent
> +Question:+
> Context broker is ignoring value, fiware orion and iotagent
> +Description:+
> orion version : 2.3.0
> iotagent-ul version : 1.12.0
> I am using fiware and iotagent over mqtt. I want to send commands to some devices with different values. I have followed https://github.com/FIWARE/tutorials.IoT-over-MQTT and read some documentation.
> After provisionning a service group (with apikey: 123456) and an actuator, I can send commands with values by following the iota URL :
> curl -iX POST \                       
>   'http://localhost:4041/iot/devices' \
>   -H 'Content-Type: application/json' \
>   -H 'fiware-service: openiot' \
>   -H 'fiware-servicepath: /' \
>   -d '{
>   "devices": [
>     {
>       "device_id": "dev001",
>       "entity_name": "urn:ngsi-ld:Device:001",
>       "entity_type": "Device",
>       "protocol": "PDI-IoTA-UltraLight",
>       "transport": "MQTT",
>       "commands": [
>         {"name": "date","type": "command", "value": {"hour": 9, "minute": 31, "second": 0}}
>        ]
>     }
>   ]
> }
> '
> iota publish a mqtt message to : /123456/dev001/cmd with payload dev001 at date|hour=9|minute=31|second=0
> But when using the context broker, the value is ignored :
> curl -iX PATCH \                                 
>   'http://localhost:1026/v2/entities/urn:ngsi-ld:Device:001/attrs' \
>   -H 'Content-Type: application/json' \
>   -H 'fiware-service: openiot' \
>   -H 'fiware-servicepath: /' \
>   -d '{
>   "date": {            
>       "type" : "command",
>       "value" : {"hour": 9, "minute": 31, "second": 0}     
>   }                                                                            
> }' 
> Here, iota publish a mqtt message to : /123456/dev001/cmd with payload dev001 at date|
> Why is it ignored ? Am I doing somthing wrong ?
> sorry for my poor english.



--
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