[Backlogmanager] [FIWARE-JIRA] (HELP-15877) [fiware-stackoverflow] Fiware IoT Agent UL: Send command_value via mqtt to device

Fernando Lopez (JIRA) jira-help-desk at jira.fiware.org
Tue Jun 4 07:52:00 CEST 2019


     [ https://jira.fiware.org/browse/HELP-15877?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Fernando Lopez updated HELP-15877:
----------------------------------
    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 at 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! 


  was:

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 at 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! 


     HD-Enabler: IDAS

> [fiware-stackoverflow] Fiware IoT Agent UL: Send command_value via mqtt to device
> ---------------------------------------------------------------------------------
>
>                 Key: HELP-15877
>                 URL: https://jira.fiware.org/browse/HELP-15877
>             Project: Help-Desk
>          Issue Type: Monitor
>          Components: FIWARE-TECH-HELP
>            Reporter: Backlog Manager
>              Labels: fiware, fiware-orion
>
> 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 at 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! 



--
This message was sent by Atlassian JIRA
(v6.4.1#64016)


More information about the Backlogmanager mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy