#!/usr/bin/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()