Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-16685

FIWARE.Question.Tech.Context broker is ignoring value, fiware orion and iotagent.

    Details

      Description

      Created question in FIWARE Q/A platform on 22-04-2020 at 09:04
      Please, ANSWER this question AT 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@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@date|

      Why is it ignored ? Am I doing somthing wrong ?

      sorry for my poor english.

        Activity

        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        backlogmanager Backlog Manager made changes -
        Summary [fiware-stackoverflow] Context broker is ignoring value, fiware orion and iotagent FIWARE.Question.Tech.Context broker is ignoring value, fiware orion and iotagent.
        fla Fernando Lopez made changes -
        Assignee Backlog Manager [ backlogmanager ]
        backlogmanager Backlog Manager made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        backlogmanager Backlog Manager made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        backlogmanager Backlog Manager made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        backlogmanager Backlog Manager created issue -

          People

          • Assignee:
            backlogmanager Backlog Manager
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: