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

FIWARE.Question.Tech.IoT.IDAS.FIWARE-IoT Agent: send command to device via MQTT

    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 23-11-2015 at 11:11
      Please, ANSWER this question AT http://stackoverflow.com/questions/33869017/fiware-iot-agent-send-command-to-device-via-mqtt

      Question:
      FIWARE-IoT Agent: send command to device via MQTT

      Description:
      I am using the FIWARE IoT agent [1] to communicate with my devices using MQTT protocol, I create a command to be able to update my device value, Here is my request to create a device:

      curl -X POST http://193.48.247.247:80/iot/devices \
      -i \
      -H "Content-Type: application/json" \
      -H "Fiware-Service: egmsmartcity" \
      -H "Fiware-ServicePath: /egmsmartcitypath" \
      -d ' { "devices": [ { "device_id": "streetlight1",
      "entity_name": "sensors:streetlight1",
      "entity_type": "sensors",
      "protocol": "PDI-IoTA-MQTT-UltraLight",
      "timezone": "Europe/Paris",
      "endpoint": "notUsed",
      "commands": [

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

      ] } ] }'

      Since I am using MQTT, the filed endpoint is not used on my case but if I delete it the MQTT does not notify my device.
      This request is working but is it the correct way to create a device to be able to send a command to my device via MQTT?

      Thanks in advance for your help!

      [1]https://github.com/telefonicaid/fiware-IoTAgent-Cplusplus

        Activity

        backlogmanager Backlog Manager created issue -
        Hide
        backlogmanager Backlog Manager added a comment -

        2015-11-23 12:05|CREATED monitor | # answers= 0, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2015-11-23 12:05|CREATED monitor | # answers= 0, accepted answer= False
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        mev Manuel Escriche made changes -
        Assignee Carlos Ralli Ucendo [ ralli ]
        Hide
        ralli Carlos Ralli Ucendo added a comment -

        Answered in stackoverflow.

        Show
        ralli Carlos Ralli Ucendo added a comment - Answered in stackoverflow.
        ralli Carlos Ralli Ucendo made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        ralli Carlos Ralli Ucendo made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        ralli Carlos Ralli Ucendo made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        mev Manuel Escriche made changes -
        Summary [fiware-stackoverflow] FIWARE-IoT Agent: send command to device via MQTT FIWARE.Question.Tech.FIWARE-IoT Agent: send command to device via MQTT
        mev Manuel Escriche made changes -
        Summary FIWARE.Question.Tech.FIWARE-IoT Agent: send command to device via MQTT FIWARE.Question.Tech.IoT.IDAS.FIWARE-IoT Agent: send command to device via MQTT
        mev Manuel Escriche made changes -
        HD-Enabler IDAS [ 10884 ]
        HD-Chapter IoT [ 10839 ]
        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        2d 22h 8m 1 Carlos Ralli Ucendo 26/Nov/15 10:12 AM
        In Progress In Progress Answered Answered
        1s 1 Carlos Ralli Ucendo 26/Nov/15 10:12 AM
        Answered Answered Closed Closed
        1s 1 Carlos Ralli Ucendo 26/Nov/15 10:12 AM

          People

          • Assignee:
            ralli Carlos Ralli Ucendo
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: