FreeRTOS: Wi-Fi Management Library
Return to main page ↑
WIFI_GetHostIP

Retrieves the host IP address from a host name using DNS.

uint8_t * pucIPAddr );
Parameters
[in]pcHost- Host (node) name.
[in]pucIPAddr- IP Address buffer.
Returns
eWiFiSuccess if the host IP address was successfully retrieved, failure code otherwise.

Example

uint8_t ucIPAddr[ 4 ];
WIFI_GetHostIP( "amazon.com", &ucIPAddr[0] );