Details
-
Type:
Monitor
-
Status: Closed
-
Priority:
Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
Labels:
-
HD-Enabler:IDAS
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":
}'
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
Field | Original Value | New Value |
---|---|---|
Component/s | FIWARE-TECH-HELP [ 10278 ] |
HD-Enabler | IDAS [ 10884 ] | |
Description |
Created question in FIWARE Q/A platform on 03-06-2019 at 14:06 {color: red}Please, ANSWER this question AT{color} 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! |
Created question in FIWARE Q/A platform on 03-06-2019 at 14:06
{color: red}Please, ANSWER this question AT{color} 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! |
Assignee | Fermín Galán [ fermin ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Resolution | Done [ 10000 ] | |
Status | In Progress [ 3 ] | Closed [ 6 ] |
Fix Version/s | 2021 [ 12600 ] |