diff options
author | yvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd> | 2010-04-02 19:25:08 +0000 |
---|---|---|
committer | yvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd> | 2010-04-02 19:25:08 +0000 |
commit | c9795926a52562aded424b00ea8ad6269c836fbd (patch) | |
tree | d667dbef47f649efbb4b2745f1ad4e5d22e5c283 /bin/ebus_dump | |
parent | 07a086944c14fd276ee3a46d7d1926adda7d700a (diff) | |
download | ebus-alt-c9795926a52562aded424b00ea8ad6269c836fbd.tar.gz ebus-alt-c9795926a52562aded424b00ea8ad6269c836fbd.zip |
examples -> bin
git-svn-id: http://10.2.2.13/svn/common/ebus@1628 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd
Diffstat (limited to 'bin/ebus_dump')
-rw-r--r-- | bin/ebus_dump | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/ebus_dump b/bin/ebus_dump new file mode 100644 index 0000000..01d2ede --- /dev/null +++ b/bin/ebus_dump @@ -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() |