Skip to end of metadata
Go to start of metadata

This function is used in Python Scripting


Read numberOfBytes bytes from a serial port.

Client Permission Restrictions

This scripting function has no Client Permission restrictions.


system.serial.readBytes(port, numberOfBytes [, timeout])

  • Parameters

String port - The previously configured serial port to use.

int numberOfBytes - The number of bytes to read.

int timeout - Maximum amount of time, in milliseconds, to block before returning. Default is 5000. [optional]

  • Returns

byte[] - A byte[] containing bytes read from the serial port.

  • Scope


Code Examples

There are no examples associated with this scripting function.

  • No labels