diff options
Diffstat (limited to 'examples/dumper.py')
-rw-r--r-- | examples/dumper.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/examples/dumper.py b/examples/dumper.py new file mode 100644 index 0000000..01d2ede --- /dev/null +++ b/examples/dumper.py @@ -0,0 +1,11 @@ +# -*- coding:utf8 -*- +import asyncore +from ebus import EbusReader + +class MyEbusReader(EbusReader): + def handle_ebus(self,ebus_packet): + if ebus_packet.values() != dict(): + print ebus_packet + +MyEbusReader() +asyncore.loop() |