def onMessage(self, msg, binary): roost.listen_to(msg, self.on_event)
def startService(self): roost.listen_to('xbee.data', self.on_data) service.Service.startService(self)