/* This function retrieves the WiFi interface's IP address.  */
WIFI_Status_t WIFI_GetIP_Address(uint8_t *ipaddr)
/* This function retrieves the WiFi interface's IP address.  */
WIFI_Status_t WIFI_GetIP_Address(uint8_t *ipaddr)
{
  WIFI_Status_t ret = WIFI_STATUS_ERROR;
  if (ES_WIFI_IsConnected(&EsWifiObj) == 1)
  {
    memcpy(ipaddr, EsWifiObj.NetSettings.IP_Addr, 4);
    ret = WIFI_STATUS_OK;
  }
  return ret;
}