示例#1
0
文件: controller.py 项目: gyscos/USC
 def handle_command(self, command):
     # Get param list corresponding to command
     params = self.get_param_list(command)
     result = json_rpc.get_answer(self.addr, 'call', params)
     print(result['answer'])
     if (result['refresh']):
         self.load_commands(result['root'])
示例#2
0
文件: controller.py 项目: gyscos/USC
 def handle_command(self, command):
     # Get param list corresponding to command
     params = self.get_param_list(command)
     result = json_rpc.get_answer(self.addr, 'call', params)
     print(result['answer'])
     if (result['refresh']):
         self.load_commands(result['root'])
示例#3
0
文件: controller.py 项目: gyscos/USC
 def connect(self, host, port):
     self.init = False
     self.addr = (host, port)
     result = json_rpc.get_answer(self.addr, 'list')
     self.load_commands(result)
     self.run()
示例#4
0
文件: controller.py 项目: gyscos/USC
 def connect(self, host, port):
     self.init = False
     self.addr = (host, port)
     result = json_rpc.get_answer(self.addr, 'list')
     self.load_commands(result)
     self.run()