encapsulated function sendTo 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 sent"; input Integer dataSize "Size of data"; output Integer sendError "Send error flag"; end sendTo;