Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
while len(spool) < size:
spool.extend(self.pop(timeout_sec=timeout_sec))
time.sleep(.100)
self.remainder.extend(spool[size:])
return str(spool[:size])
def pop (self, timeout_sec=None):
return super(Share2UART, self).read(timeout_sec=timeout_sec)
class BothShare (ShareUART):
ADVERTISED = ShareUART.ADVERTISED + Share2UART.ADVERTISED
# SERVICES = [Attrs.DeviceService]
SERVICES = ShareUART.SERVICES + Share2UART.SERVICES
CHARACTERISTICS = ShareUART.SERVICES + Share2UART.SERVICES
UART_SERVICE_UUID = Attrs.CradleService2
TX_CHAR_UUID = Attrs.Command2
RX_CHAR_UUID = Attrs.Response2
pass
class UART (Share2UART):
pass