def exit(self): self._exit = True un_sends(self.un_path, 'notify') self.work_thread.join()
def write(self, data): _data = phy_data_zigbee(data) #log('write uart: %s' % _data.raw_data) self.outq.put(_data) un_sends(self.un_path, 'notify')
def exit(self): un_sends(self.daemon_path, 'stop')
def enter(self): un_sends(self.daemon_path, 'start')
def exit(self): self._exit = True un_sends('/tmp/hsb/hsb_audio.listen', 'exit') self.join()
def set_grammar(self, grammar): f = file(self.grammar_path, 'w+') f.write(grammar) f.close() un_sends(self.daemon_path, 'set_grammar')