Esempio n. 1
0
 def set(self, body, param):
     success, response = protocol.send_command(self.f, body, param,
                                               self.encoding)
     if not success:
         raise ProjectorError(response)
     assert response == 'OK'
Esempio n. 2
0
 def set(self, body, param):
     success, response = protocol.send_command(self.f, body, param)
     if not success:
         raise ProjectorError(response)
     assert response == 'OK'
Esempio n. 3
0
 def get(self, body):
     success, response = protocol.send_command(self.f, body, '?',
                                               self.encoding)
     if not success:
         raise ProjectorError(response)
     return response
Esempio n. 4
0
 def get(self, body):
     success, response = protocol.send_command(self.f, body, '?')
     if not success:
         raise ProjectorError(response)
     return response