serial.read_bytes

serial.read_bytes

serial.read_bytes

Function

Read raw bytes from the open serial port and return Bytes.

Syntax

Parameters

No parameters.

Return value

TypeDescription
BytesThe raw bytes currently read; empty Bytes is returned when there is no data.

Code Example

Notes

  • Serial port reading is controlled by device.open({timeout: ...}).
  • Return value length is limited by BT_BYTES_LIMIT.