sockGetLocalIP (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Device support:

All

Firmware version:

1.00 / 1.00.00


Returns the 32 bit IP address of the local IP address (the IP address of the RTCU).

 

Note: For backwards compatibility, if no interface is selected the function returns the IP address of the Mobile network.

 

 

Input:

iface : SINT (default 1)

The network interface to query. 1 = Mobile network, 2 = LAN network, etc. (See Network)

Note: For backwards compatibility the Mobile network is used as default network.

 

Returns: DINT

Returns the 32 bit local IP address (the IP address of the RTCU).

 

 

Declaration:

FUNCTION sockGetLocalIP : DINT;

VAR_INPUT
  iface : SINT := 1;
END_VAR;

 

 


Example:

 

Please see the "Examples - Telnet server"