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'
def set(self, body, param): success, response = protocol.send_command(self.f, body, param) if not success: raise ProjectorError(response) assert response == 'OK'
def get(self, body): success, response = protocol.send_command(self.f, body, '?', self.encoding) if not success: raise ProjectorError(response) return response
def get(self, body): success, response = protocol.send_command(self.f, body, '?') if not success: raise ProjectorError(response) return response