Skip to content

Commit

Permalink
documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
tillepille authored and tillepille committed Mar 25, 2016
1 parent 471272b commit c05c0be
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions daemon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
* DATA to pin11/gpio0
*
* Usage
* send xxxxxyyz to ip:port
* send axxxxxyyz to ip:port
* a systemcode. 1 for classic elro, 2 for Intertechno
* xxxxx encoding
* 00001 for first channel
* yy plug
Expand All @@ -17,13 +18,17 @@
*
* Examples of remote actions
* Switch plug 01 on 00001 to on
* echo 01111011 | nc localhost 11337
* echo 101111011 | nc localhost 11337
*
* Switch plug 01 on 00001 to off
* echo 01111010 | nc localhost 11337
* echo 101111010 | nc localhost 11337
*
* Get status of plug 01 on 00001
* echo 01111012 | nc localhost 11337
* echo 101111012 | nc localhost 11337
*
* Switch intertechno plug 2 on group 2 to on
* echo 2221 | nc localhost 11337
*
*/

#include <stdio.h>
Expand Down Expand Up @@ -218,7 +223,7 @@ int main(int argc, char* argv[]) {
printf("systemCode[%s] is unsupported\n", nGroup);
return -1;
}
}
}
printf("got systemCode[%s] ",nGroup);
switch(nSwitchNumber){
// unit/group code 01-16
Expand Down

0 comments on commit c05c0be

Please sign in to comment.