def _async_stop(): evt = StopEvent(target=self.device_id, origin=self.device_id, thread_id=self.thread_id) self.send_message(evt) self.on_stop()
def stop(self): """ Stops the bus by sending a STOP event """ evt = StopEvent(target=Config.get('device_id'), origin=Config.get('device_id'), thread_id=self.thread_id) self.post(evt)