Ejemplo n.º 1
0
 def write(self, data, waitForResponse=True, timeout=1, byteCount=0):
     '''
     Write Data to PiArm 
     '''
     self.log.debug('write: %s', data)
     responseLines = SerialComm.write(self,
                                      data,
                                      waitForResponse=waitForResponse,
                                      timeout=timeout,
                                      byteCount=byteCount)
     return responseLines
Ejemplo n.º 2
0
 def write(self,
           data,
           waitForResponse=True,
           writeTerm='\r',
           timeout=5,
           expectedResponse=None):
     """ Write Data to pitalk Modem """
     self.log.debug('write: %s', data)
     responseLines = SerialComm.write(self,
                                      data + writeTerm,
                                      waitForResponse=waitForResponse,
                                      timeout=timeout,
                                      response=expectedResponse)
     return responseLines