summaryrefslogtreecommitdiff
path: root/examples/dumper.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/dumper.py')
-rw-r--r--examples/dumper.py11
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()