The /xpl-cmnd url is used to send directly an xPL message over the xPL network.
This usage must be avoided as often as possible. See REST-command|/command for sending orders to specific plugins.
So, don’t forget to ask yourself “Do I really need to send directly a command without using facilities offered by REST-command|/command and others REST method given by Domogik project ?”.
For example, official User Interface doesn’t use this feature.
Here is the URI format (replace REST by ip:port of REST server):
http://REST/xpl-cmnd/<schema>/<key1>/<value1>/<key2>/<value2>/...
The schema type will always be xpl-cmnd.
When OK:
{"status" : "OK", "code" : 0, "description" : "None"}
When there is a problem in URI format:
{"status" : "ERROR", "code" : 999, "description" : "Schema not given"}
{"status" : "ERROR", "code" : 999, "description" : "No parameters specified"}
{"status" : "ERROR", "code" : 999, "description" : "Value missing for last parameter"}