From 6c580608f942d2f4b931faa6fe81171fd9e8a878 Mon Sep 17 00:00:00 2001 From: yvesf Date: Wed, 9 Jun 2010 19:41:46 +0000 Subject: bla git-svn-id: http://10.2.2.13/svn/common/ebus@1679 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd --- bin/ebus_dump.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 bin/ebus_dump.py (limited to 'bin/ebus_dump.py') diff --git a/bin/ebus_dump.py b/bin/ebus_dump.py new file mode 100644 index 0000000..bfae56e --- /dev/null +++ b/bin/ebus_dump.py @@ -0,0 +1,16 @@ +#!/usr/bin/env python +# -*- coding:utf8 -*- +import asyncore +from ebus import EbusReader + +class MyEbusReader(EbusReader): + def __init__(self,*args,**kwargs): + EbusReader.__init__(self,*args,**kwargs) + self.debug=True + + def handle_ebus(self,ebus_packet): + if ebus_packet.values() != dict(): + print ebus_packet + +MyEbusReader() +asyncore.loop() -- cgit v1.2.1