Microchip® Advanced Software Framework

tstrM2MIPConfig Struct Reference

IP configuration (static/DHCP). The same structure is used for DCHP callback as well as static IP configuration.

Note
All member IP addresses are expressed in Network Byte Order (eg. "192.168.10.1" will be expressed as 0x010AA8C0).

#include <m2m_types.h>

Data Fields

uint32 u32AlternateDNS
 
uint32 u32DhcpLeaseTime
 
uint32 u32DNS
 
uint32 u32Gateway
 
uint32 u32StaticIP
 
uint32 u32SubnetMask
 

uint32 tstrM2MIPConfig::u32AlternateDNS

IP for the secondary DNS server (if any). Must set to zero if not provided in static IP configuration from the application.

uint32 tstrM2MIPConfig::u32DhcpLeaseTime

DHCP Lease Time in sec. This field is is ignored in static IP configuration.

uint32 tstrM2MIPConfig::u32DNS

IP for the DNS server.

Referenced by m2m_wifi_set_static_ip().

uint32 tstrM2MIPConfig::u32Gateway

IP of the default internet gateway.

Referenced by m2m_wifi_set_static_ip().

uint32 tstrM2MIPConfig::u32StaticIP

If DHCP callback, this is the IP address obtained from the DHCP. In static IP config, this is the assigned to the device from the application.

Referenced by iperf_wifi_cb(), and m2m_wifi_set_static_ip().

uint32 tstrM2MIPConfig::u32SubnetMask

Subnet mask for the local area network.

Referenced by m2m_wifi_set_static_ip().