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