SER2.read()

This command receives a string from the serial port USIF1.

It has no input parameter.

The return value is a Python string which contains the data received and stored in buffer at the moment of command execution. The value might be empty if no data is received.

Example:

 

a = SER2.read()

 

receives a string from the serial port USIF1 handling, assigning the return value to a.

 

Note: The buffer available for the SER2.read command is 4096 bytes. The maximum number of bytes returned by each SER2.read is 1023.

 

Note: It is up to Python script to keep empty SER2.read buffer.