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

        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: