encapsulated function sendTo import Modelica; extends Modelica.Icons.Function; import Modelica_DeviceDrivers.Communication.UDPSocket; import Modelica_DeviceDrivers.Packaging.SerialPackager; input UDPSocket socket; input String ipAddress "IP address where data has to be sent"; input Real port "Port number where data has to be sent"; input SerialPackager pkg; input Integer dataSize "Size of data"; end sendTo;