CPS_NOIP_REASON_*

C Specification

#include <nitroWiFi/cps.h>
enum {
	CPS_NOIP_REASON_NONE = 0,
	CPS_NOIP_REASON_LINKOFF,
	CPS_NOIP_REASON_DHCPDISCOVERY,
	CPS_NOIP_REASON_LEASETIMEOUT,
	CPS_NOIP_REASON_COLLISION
};

Description

Constants set in CPSNoIpReason. When CPSMyIp is 0, the IP address has not yet been set; the following elements indicate the reasons.

CPS_NOIP_REASON_NONE Indicates that there is no specific reason (e.g., the CPS library has not been initialized).
CPS_NOIP_REASON_LINKOFF Indicates that the link is off (e.g., disconnected from the access point).
CPS_NOIP_REASON_DHCPDISCOVERY Indicates that the first DHCP discovery is in progress.
CPS_NOIP_REASON_LEASETIMEOUT Indicates that the DHCP lease has expired.
CPS_NOIP_REASON_COLLISION Indicates that duplicates of manually set IPs were found.

Even if CPSMyIp is reset and becomes a non-zero value, CPSNoIpReason is not cleared.

See Also

Revision History

09/13/2005 Initial version.