Esempio n. 1
0
        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()
Esempio n. 2
0
    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)