netGetMonitorParam (Functionblock) |
Top Previous Next |
This function will read out the parameters for the network monitoring service previously set by using the netSetMonitorParam function.
Input: iface : SINT (default 1) The network interface. 1 = Mobile network, 2 = LAN network, etc. (See Network) Please note that X32 and NX32 devices only supports monitoring of the mobile network.
Output: Status : INT
Enabled : BOOL Determines whether the network monitor service is enabled.
method : SINT The method used by the network monitoring service to check the health of the connection. 1 = DNS lookup, 2 = Ping address.
MaxAttempt : INT Maximum number of failed health check attempts before the necessary recovery actions are initiated.
AliveFreq : DINT The number of seconds between successful health checks.
ping1 : DINT The IP address of the primary server. (only used by ping)
ping2 : DINT The IP address of the secondary server. (only used by ping)
Declaration: FUNCTION_BLOCK netGetMonitorParam;
Example: INCLUDE rtcu.inc |