diff options
author | VG <vg@devys.org> | 2015-02-01 02:06:06 +0100 |
---|---|---|
committer | VG <vg@devys.org> | 2015-02-01 02:06:06 +0100 |
commit | 731517cb3db814274a66a32c7b77fbb1dc9bae44 (patch) | |
tree | c1aa11c5c5b75e50fd8a0d46bdb3c6e6b896e575 /readme.rst | |
parent | bd1fb5b538bdd4cc6b2bb0398051b5b3785d1250 (diff) | |
download | servoswitch-731517cb3db814274a66a32c7b77fbb1dc9bae44.tar.gz servoswitch-731517cb3db814274a66a32c7b77fbb1dc9bae44.tar.bz2 servoswitch-731517cb3db814274a66a32c7b77fbb1dc9bae44.zip |
Add daemon and client examples
Diffstat (limited to 'readme.rst')
-rw-r--r-- | readme.rst | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -10,3 +10,11 @@ Simple control is done on the serial line. Exemple with python: import serial s = serial.Serial('/dev/serial/device', baudrate=9600) s.write(b't') # toggle switch + + +In `doc` directory, there is example of a daemon to turn light on and off from +a jolla phone (a simple python script easily adaptable: 3 lines). The daemon +can also turn on light in the good time range by just detecting the phone mac +address requesting an address on the dhcp local server. This possibility is +only available if the dhcp server is on the same device as where the usb servo +switch is plugged into. |