/* This function retrieves the WiFi interface's DNS address.  */
WIFI_Status_t WIFI_GetDNS_Address(uint8_t *DNS1addr, uint8_t *DNS2addr)
/* This function retrieves the WiFi interface's DNS address.  */
WIFI_Status_t WIFI_GetDNS_Address(uint8_t *DNS1addr, uint8_t *DNS2addr)
{
  WIFI_Status_t ret = WIFI_STATUS_ERROR; 
  if(EsWifiObj.NetSettings.IsConnected)
  {
    memcpy(DNS1addr, EsWifiObj.NetSettings.DNS1, 4);
    memcpy(DNS2addr, EsWifiObj.NetSettings.DNS2, 4);
    ret = WIFI_STATUS_OK;
  }
  return ret;
}