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

[fiware-stackoverflow] IoT Agent plus MQTT - invoking command as a measurement

    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 16-07-2019 at 19:07
      Please, ANSWER this question AT https://stackoverflow.com/questions/57062728/iot-agent-plus-mqtt-invoking-command-as-a-measurement

      Question:
      IoT Agent plus MQTT - invoking command as a measurement

      Description:
      I'm using IoTAgent over MQTT configuration. After going step by step with the tutorial presented on FIWARE's website is there a way to invoke command using measurment input of the IoT Agent?

      Let's say i have 2 arduinos: one is an actuator and the other one is a sensor. The actuator has LED attached, sensor has a button. I want to send a message from sensor-arduino with command ON (to MQTT Broker or directly as an Ultralight message via HTTP - as far as I tested IoTA for Ultralight can run simultaneously both modes which is great) what will invoke sending the command defined for given device.

      Let's say im using this config:

      I can invoke command like this (which is very inconvenient):

      Or after registering the command, I can use Orion Context Broker:

      Those approaches give me a response in Mosquitto subscriber.

      How can I create a message sent to IoTAgent (via MQTT or HTTP) that will invoke command sent to MQTT Broker? The command is furhter managed in actuator-arduino as long as is received in the MQTT Broker.

        Activity

        Hide
        backlogmanager Backlog Manager added a comment -

        2019-07-16 21:06|CREATED monitor | # answers= 0, accepted answer= False

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

        2019-07-18 15:06|UPDATED status: transition Answer| # answers= 1, accepted answer= False

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

        2019-07-18 18:06|UPDATED status: transition Answered| # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2019-07-18 18:06|UPDATED status: transition Answered| # answers= 1, accepted answer= False
        Hide
        backlogmanager Backlog Manager added a comment -

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

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

          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: