Deprecated function. Don't use it.
Kept for backward compatibility. Only very limited use since due to thread parallelism (the serial port is read from a dedicated thread) the returned value may already be outdated when it is returned or when a later conditional action is based on the returned value.
encapsulated function getReceivedBytes import Modelica; extends Modelica.Icons.Function; extends Modelica.Icons.ObsoleteModel; import Modelica_DeviceDrivers.Communication.SerialPort; input SerialPort sPort; output Integer receivedBytes "Number of received bytes"; end getReceivedBytes;