Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Commands queue #218

Open
Secmotic opened this issue Sep 11, 2017 · 0 comments
Open

Commands queue #218

Secmotic opened this issue Sep 11, 2017 · 0 comments

Comments

@Secmotic
Copy link

We have detected a probably not desired behavior when sending commands using UL2.0

In order to send several commands to a device and put them in a queue, it is a good idea to send a single update query with all the commands to be queued:

Header:
   Fiware-service: howtoservice
   Fiware-servicepath: /howto
   Content-type: application/json

Body:
  {
	"contextElements": [{
        "type": "Thing",
        "isPattern": false,
        "id":"ID_DEVICE",
        "attributes": [
        	{
        		"name": "get_status", 
        		"type": "command", 
        		"value": "path:test"
        	},
        	{ 
        		"name": "get_param", 
        		"type": "command", 
        		"value": "path:test"
        	}]
      }],
    "updateAction": "UPDATE"
  }

The result of this execution, is that the device receives the following:
ID_DEVICE@get_status|path:test|ID_DEVICE@get_param|path:test

But it would be desirable that the device receives:
ID_DEVICE@get_status|path:test
ID_DEVICE@get_param|path:test

Or is this an expected behavior done by any reason?

Thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants