WINC1500 IoT Software APIs: m2m_wifi_set_static_ip

WINC1500 IoT Software API

WINC1500 IoT Software APIs  19.5.2
WINC Software API Reference Manual
m2m_wifi_set_static_ip

Functions

NMI_API sint8 m2m_wifi_set_static_ip (tstrM2MIPConfig *pstrStaticIPConf)
 

Detailed Description

Synchronous static IP Address configuration function.

Function Documentation

◆ m2m_wifi_set_static_ip()

NMI_API sint8 m2m_wifi_set_static_ip ( tstrM2MIPConfig pstrStaticIPConf)

Assign a static IP address to the WINC board. This function assigns a static IP address in case the AP doesn't have a DHCP server or in case the application wants to assign a predefined known IP address. The user must take in mind that assigning a static IP address might result in an IP address conflict. In case of an IP address conflict observed by the WINC board the user will get a response of M2M_WIFI_RESP_IP_CONFLICT in the wifi callback. The application is then responsible to either solve the conflict or assign another IP address.

Parameters
[in]pstrStaticIPConfPointer to a structure holding the static IP Configurations (IP, Gateway, subnet mask and DNS address).
Precondition
The application must disable auto DHCP using m2m_wifi_enable_dhcp before assigning a static IP address.
Warning
Normally this function normally should not be used. DHCP configuration is requested automatically after successful Wi-Fi connection is established.
See also
tstrM2MIPConfig
Returns
The function returns M2M_SUCCESS for successful operations and a negative value otherwise.
Generated on Thu Jan 26 2017 22:15:21 for WINC1500 IoT Software APIs by   doxygen 1.8.13