RtnIsDeviceOnline

RtnIsDeviceOnline is used to get the online status of a network device for link status monitoring. Link status monitoring must first be enabled in the RT-TCP/IP INI file.

Syntax

BOOL RtnIsDeviceOnline (

char* devName

);

Parameters

devName

ASCII device name of the interface from which you want the status retrieved, in the form “rtndx.” This is located in the RtxTcpip.ini file.

Return Values

TRUE if interface is online, FALSE if interface is offline

Remarks

To use the APIs RtnlsDeviceOnline, you must add the line dvrutil.h to the project source file. If dvrutil.h is not included, the build may return errors.

This function requires the stack to be running.

Requirements

Header Drvutl.h
Library Rtxtcpip.lib

See Also

RtnIsStackOnline

IntervalZero.com | Support | Give Feedback