You cannot create an instance of
PortIn objects are constructed for every corresponding entry in the USB descriptor and added to the
Read characters. If
nbytesis specified then read at most that many bytes. Otherwise, read everything that arrives until the connection times out. Providing the number of bytes expected is highly recommended because it will be faster.
Returns: Data read Return type: bytes or None