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

[fiware-stackoverflow] Fiware IoT Agent UL: Send command_value via mqtt to device

    Details

      Description

      Created question in FIWARE Q/A platform on 03-06-2019 at 14:06
      Please, ANSWER this question AT https://stackoverflow.com/questions/56427851/fiware-iot-agent-ul-send-command-value-via-mqtt-to-device

      Question:
      Fiware IoT Agent UL: Send command_value via mqtt to device

      Description:
      I am using the IoT-agent for ultra light and I'd light to send a command back to my IoT-Device. If I follow the example for a smart door here I can send something like:

      curl -iX POST \
      'http://localhost:1026/v2/entities/urn:ngsi-ld:pysense:002/attrs' \
      -H 'Content-Type: application/json' \
      -H 'fiware-service: openiot' \
      -H 'fiware-servicepath: /' \
      -d '{
      "color":

      { "type" : "command", "value" : "100" }

      }'

      Fiware publishes the payload "urn:ngsi-ld:pysense:002@color|" to my mqtt-broker. But I would expect the value of "100" to be passed as well?

      I also found this documentation on Git regarding mqtt-commands. But that one does not specify where to send that and how? I suppose it uses the the same URL as this request: http://localhost:4041/v1/updateContext
      ?? Is that the up-to-date way to issue commands?

      I am using Orion-ld and the iotagent-ul:1.8.0.

      Can somebody help me getting the value of "color" into the mqtt-message as well?

      Thank you!

        Activity

        Hide
        backlogmanager Backlog Manager added a comment -

        2019-06-03 15:06|CREATED monitor | # answers= 0, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2019-06-03 15:06|CREATED monitor | # answers= 0, accepted answer= False
        Hide
        backlogmanager Backlog Manager added a comment -

        2019-06-06 12:06|UPDATED status: transition Answer| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2019-06-06 12:06|UPDATED status: transition Answer| # answers= 1, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2019-06-06 15:06|UPDATED status: transition Finish| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2019-06-06 15:06|UPDATED status: transition Finish| # answers= 1, accepted answer= True

          People

          • Assignee:
            fermin Fermín Galán
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: