Details
-
Type: Monitor
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
HD-Enabler:IDAS
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
Transition | Time In Source Status | Execution Times | Last Executer | Last Execution Date | |||||
---|---|---|---|---|---|---|---|---|---|
|
1d 18h | 1 | Backlog Manager | 18/Jul/19 3:06 PM | |||||
|
2h 59m | 1 | Backlog Manager | 18/Jul/19 6:06 PM | |||||
|
1d | 1 | Backlog Manager | 19/Jul/19 6:06 PM |