encapsulated function read import Modelica; extends Modelica.Icons.Function; import Modelica_DeviceDrivers.Communication.TCPIPSocketClient; import Modelica_DeviceDrivers.Packaging.SerialPackager; input TCPIPSocketClient socketClient; input SerialPackager pkg "Data package to be read"; input Integer dataSize "Size of data"; end read;