add create outlet

This commit is contained in:
jbnadal
2018-05-07 12:49:27 +02:00
parent 10bfa7ac93
commit 45b6ed9d73
8 changed files with 91 additions and 6 deletions

View File

@@ -37,6 +37,18 @@
./usr/bin/ubus call domo.outlets create "{\"name\":\"test\", \"sender\": 12797322, \"switch\": 4}"
```
#### create failed 1
Name is missing.
```
./usr/bin/ubus call domo.outlets create "{\"sender\": 12797322, \"switch\": 4}"
./usr/bin/ubus call domo.outlets create "{\"name\":\"test\", \"switch\": 4}"
./usr/bin/ubus call domo.outlets create "{\"name\":\"test\", \"sender\": 12797322}"
```
TODO
### list