[ https://jira.fiware.org/browse/HELP-13348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Fernando Lopez updated HELP-13348: ---------------------------------- HD-Chapter: IoT Description: Created question in FIWARE Q/A platform on 26-06-2017 at 13:06 {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/44758686/ultralight-2-0-commands-with-parameters-polling-mode +Question:+ Ultralight 2.0 commands with parameters (polling mode) +Description:+ I have found some troubles working with commands. According to the sintaxis of the protocol, a command can be executed using an updateContext operation to the Orion Context Broker, which now it is working perfect. The doubt is, how do I give the command some parameters, as specified in the protocol? <device name>@<command name>|<param name>=<value>|.... If I send the following REST request, it gives me a 400 Bad request, complaining about strange characters: curl -X PUT \ 'http://MYIP:1026/v2/entities/1111/attrs/blink?type=Thing' \ -H 'cache-control: no-cache' \ -H 'content-type: application/json' \ -H 'fiware-service: howtoservice' \ -H 'fiware-servicepath: /howto' \ -d '{ "type": "command", "value": "blink=true|another_param=false" }' Where should I issue the params if it is not in the "value" key? If I use the following request, it acts as expected: curl -X PUT \ 'http://MYIP:1026/v2/entities/1111/attrs/blink?type=Thing' \ -H 'cache-control: no-cache' \ -H 'content-type: application/json' \ -H 'fiware-service: howtoservice' \ -H 'fiware-servicepath: /howto' \ -d '{ "type": "command", "value": "true" }' Thanks in advance was: Created question in FIWARE Q/A platform on 26-06-2017 at 13:06 {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/44758686/ultralight-2-0-commands-with-parameters-polling-mode +Question:+ Ultralight 2.0 commands with parameters (polling mode) +Description:+ I have found some troubles working with commands. According to the sintaxis of the protocol, a command can be executed using an updateContext operation to the Orion Context Broker, which now it is working perfect. The doubt is, how do I give the command some parameters, as specified in the protocol? <device name>@<command name>|<param name>=<value>|.... If I send the following REST request, it gives me a 400 Bad request, complaining about strange characters: curl -X PUT \ 'http://MYIP:1026/v2/entities/1111/attrs/blink?type=Thing' \ -H 'cache-control: no-cache' \ -H 'content-type: application/json' \ -H 'fiware-service: howtoservice' \ -H 'fiware-servicepath: /howto' \ -d '{ "type": "command", "value": "blink=true|another_param=false" }' Where should I issue the params if it is not in the "value" key? If I use the following request, it acts as expected: curl -X PUT \ 'http://MYIP:1026/v2/entities/1111/attrs/blink?type=Thing' \ -H 'cache-control: no-cache' \ -H 'content-type: application/json' \ -H 'fiware-service: howtoservice' \ -H 'fiware-servicepath: /howto' \ -d '{ "type": "command", "value": "true" }' Thanks in advance HD-Enabler: IDAS > FIWARE.Question.Tech.Ultralight 2.0 commands with parameters (polling mode). > ---------------------------------------------------------------------------- > > Key: HELP-13348 > URL: https://jira.fiware.org/browse/HELP-13348 > Project: Help-Desk > Issue Type: Monitor > Components: FIWARE-TECH-HELP > Reporter: Backlog Manager > Assignee: Francisco Romero > Labels: fiware, fiware-orion > > Created question in FIWARE Q/A platform on 26-06-2017 at 13:06 > {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/44758686/ultralight-2-0-commands-with-parameters-polling-mode > +Question:+ > Ultralight 2.0 commands with parameters (polling mode) > +Description:+ > I have found some troubles working with commands. According to the sintaxis of the protocol, a command can be executed using an updateContext operation to the Orion Context Broker, which now it is working perfect. > The doubt is, how do I give the command some parameters, as specified in the protocol? > <device name>@<command name>|<param name>=<value>|.... > If I send the following REST request, it gives me a 400 Bad request, complaining about strange characters: > curl -X PUT \ > 'http://MYIP:1026/v2/entities/1111/attrs/blink?type=Thing' \ > -H 'cache-control: no-cache' \ > -H 'content-type: application/json' \ > -H 'fiware-service: howtoservice' \ > -H 'fiware-servicepath: /howto' \ > -d '{ > "type": "command", > "value": "blink=true|another_param=false" > }' > Where should I issue the params if it is not in the "value" key? > If I use the following request, it acts as expected: > curl -X PUT \ > 'http://MYIP:1026/v2/entities/1111/attrs/blink?type=Thing' \ > -H 'cache-control: no-cache' \ > -H 'content-type: application/json' \ > -H 'fiware-service: howtoservice' \ > -H 'fiware-servicepath: /howto' \ > -d '{ > "type": "command", > "value": "true" > }' > Thanks in advance -- This message was sent by Atlassian JIRA (v6.4.1#64016)
You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy Cookies policy