示例#1
0
 def exit(self):
     self._exit = True
     un_sends(self.un_path, 'notify')
     self.work_thread.join()
示例#2
0
 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')
示例#3
0
 def exit(self):
     un_sends(self.daemon_path, 'stop')
示例#4
0
 def enter(self):
     un_sends(self.daemon_path, 'start')
示例#5
0
    def exit(self):
        self._exit = True

        un_sends('/tmp/hsb/hsb_audio.listen', 'exit')
        self.join()
示例#6
0
    def set_grammar(self, grammar):
        f = file(self.grammar_path, 'w+')
        f.write(grammar)
        f.close()

        un_sends(self.daemon_path, 'set_grammar')