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

        Hide
        backlogmanager Backlog Manager added a comment -

        2020-04-22 12:05|CREATED monitor | # answers= 0, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2020-04-22 12:05|CREATED monitor | # answers= 0, accepted answer= False
        Hide
        backlogmanager Backlog Manager added a comment -

        2020-04-23 18:05|UPDATED status: transition Answer| # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2020-04-23 18:05|UPDATED status: transition Answer| # answers= 1, accepted answer= False
        Hide
        backlogmanager Backlog Manager added a comment -

        2020-04-23 21:05|UPDATED status: transition Answered| # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2020-04-23 21:05|UPDATED status: transition Answered| # answers= 1, accepted answer= False
        Hide
        backlogmanager Backlog Manager added a comment -

        2020-04-24 00:05|UPDATED status: transition Finish| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2020-04-24 00:05|UPDATED status: transition Finish| # answers= 1, accepted answer= True

          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: