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

FIWARE.Question.Tech.What is the NGSI v2 endpoint for mimicking IoT Agent commands?.

    Details

    • Type: Monitor
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2021
    • Component/s: FIWARE-TECH-HELP
    • Labels:

      Description

      Created question in FIWARE Q/A platform on 27-06-2018 at 12:06
      Please, ANSWER this question AT https://stackoverflow.com/questions/51060332/what-is-the-ngsi-v2-endpoint-for-mimicking-iot-agent-commands

      Question:
      What is the NGSI v2 endpoint for mimicking IoT Agent commands?

      Description:
      When testing commands Southbound, I am currently using the NGSI v1 endpoint as shown:

      curl -X POST \
      'http://iot-agent/v1/updateContext' \
      -H 'Content-Type: application/json' \
      -H 'fiware-service: openiot' \
      -H 'fiware-servicepath: /' \
      -d '{
      "contextElements": [
      {
      "type": "Bell",
      "isPattern": "false",
      "id": "urn:ngsi-ld:Bell:001",
      "attributes": [

      { "name": "ring", "type": "command", "value": "" }

      ]
      }
      ],
      "updateAction": "UPDATE"
      }'

      As you can see this is an NGSI v1 request. According to this presentation on Slideshare (slide 16) use of NGSI v1 is discouraged - I would like to replace this with an NGSI v2 request. I believe that all IoT Agents are now NGSI v2 capable, however I have been unable to find the details of the replacement NGSI v2 request within the documentation.

      So the question is what is the equivalent cUrl command to mimic a command from Orion using NGSI v2?

        Activity

        Hide
        backlogmanager Backlog Manager added a comment -

        2018-06-27 15:05|CREATED monitor | # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2018-06-27 15:05|CREATED monitor | # answers= 1, accepted answer= False
        Hide
        backlogmanager Backlog Manager added a comment -

        2018-06-27 18:05|UPDATED status: transition Answer| # answers= 1, accepted answer= False

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

        2018-06-27 21:05|UPDATED status: transition Finish| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2018-06-27 21: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: