code: def send(self, msg):
          
          # Create a sliplib Driver
          slipDriver = sliplib.Driver()
  
          # Package data in slip format
          slipData = slipDriver.send(msg)
  
          # Send data over serial port
          res = self._serialPort.write(slipData)
  
          # Return number of bytes transmitted over serial port
          return res
docs: Encodes data to slip protocol and then sends over serial port
  
          Uses the SlipLib module to convert the message data into SLIP format.
          The message is then sent over the serial port opened with the instance
          of the Faraday class used when invoking send().
  
          Args:
              msg (bytes): Bytes format message to send over serial port.
  
          Returns:
              int: Number of bytes transmitted over the serial port.