diff options
author | yvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd> | 2010-03-28 12:27:59 +0000 |
---|---|---|
committer | yvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd> | 2010-03-28 12:27:59 +0000 |
commit | 203c9f80ece1e3de17b6c23bcae730f68d4b90fa (patch) | |
tree | 53d64893a65d579862651ddcd6fde595c6a810d6 /examples | |
parent | 94af8fbd907d32e5d95ef94ad0761945584c7472 (diff) | |
download | ebus-alt-203c9f80ece1e3de17b6c23bcae730f68d4b90fa.tar.gz ebus-alt-203c9f80ece1e3de17b6c23bcae730f68d4b90fa.zip |
egg
git-svn-id: http://10.2.2.13/svn/common/ebus@1613 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd
Diffstat (limited to 'examples')
-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() |