RttcpipIsDeviceOnline
RttcpipIsDeviceOnline is used to get the online status of a network device for link status monitoring.
Syntax
BOOL RttcpipIsDeviceOnline (
CHAR *devName
);
Parameters
devName
ASCII device name of the interface from which you want the status retrieved.
Return Value
If this function succeeds, it returns TRUE, which means the interface has initialized and the Ethernet link is up. If this function fails, it returns FALSE, which means the interface has not completed initialization or the Ethernet link is down.
Remarks
If line status monitoring is disabled, RttcpipIsDeviceOnline returns TRUE after the device has initialized.
Requirements
Minimum supported version | Header | Library |
---|---|---|
eRTOS 1.0 SDK |
RttcpipApi.h |
RtTcpipApi.lib |