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

[fiware-stackoverflow] Cannot register commands in IoT Agent Fiware

    Details

      Description

      Created question in FIWARE Q/A platform on 21-12-2020 at 02:12
      Please, ANSWER this question AT https://stackoverflow.com/questions/65386590/cannot-register-commands-in-iot-agent-fiware

      Question:
      Cannot register commands in IoT Agent Fiware

      Description:
      I'm using IoT Agent with Ultralight run directly (not as a dockerized component). I'm able to register new device, which is mapped in Orion Context Broker. However I have an issue with registering Actuators which require commands within configuration data. I use:
      curl -iX POST \
      'http://MYIP:4061/iot/devices' \
      -H 'Content-Type: application/json' \
      -H 'fiware-service: openiot' \
      -H 'fiware-servicepath: /' \
      -d '{
      "devices": [
      {
      "device_id": "lamp003",
      "entity_name": "urn:ngsi-ld:Lamp:003",
      "entity_type": "Lamp",
      "protocol": "PDI-IoTA-UltraLight",
      "transport": "MQTT",
      "commands": [

      {"name": "on","type": "command"}

      ,

      {"name": "off","type": "command"}

      ]}
      ]
      }

      And in response I'm hit with:

      op=IoTAgentNGSI.DeviceProvisioning | from=n/a | srv=n/a | subsrv=n/a |
      msg=Device provisioning failed due to the following error: |
      comp=IoTAgent Request error connecting to the Context Broker:

      {"code":"400","reasonPhrase":"Bad Request","details":"missing isDomain value for registration attribute"}

      I tried adding "isDomain": "false" to elements of command table, but no luck. It used to work before and furthermore similar solution is presented on official guide.

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        13m 53s 1 Fernando Lopez 28/Dec/20 1:03 PM
        In Progress In Progress Answered Answered
        1s 1 Fernando Lopez 28/Dec/20 1:03 PM
        Answered Answered Closed Closed
        3s 1 Fernando Lopez 28/Dec/20 1:03 PM
        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        fla Fernando Lopez made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        fla Fernando Lopez made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        fla Fernando Lopez made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        fla Fernando Lopez made changes -
        Assignee Jason Fox [ jason.fox ]
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2020-12-28 12:49|CREATED monitor | # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2020-12-28 12:49|CREATED monitor | # answers= 1, accepted answer= True
        backlogmanager Backlog Manager created issue -

          People

          • Assignee:
            jason.fox Jason Fox
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: