Reorganize command structure; add tests; add a little protocol documentation.

This commit is contained in:
William Pietri
2017-11-02 09:05:48 -07:00
parent 6f29c96e61
commit ff272c87eb
4 changed files with 76 additions and 30 deletions
+11
View File
@@ -0,0 +1,11 @@
A clean command:
```
<iq id="TXID" to="ROBOTID@126.ecorobot.net/atom" from="USERID@ecouser.net/RESOURCEID" type="set"><query xmlns="com:ctl"><ctl td="Clean"><clean type="auto" speed="standard"/></ctl></query></iq>
```
A charge command:
```
<iq id="TXID" to="ROBOTID@126.ecorobot.net/atom" from="USERID@ecouser.net/RESOURCEID" type="set"><query xmlns="com:ctl"><ctl td="Charge"><charge type="go"/></ctl></query></iq>
```