/* Configures what NTP server the SNTP client should use.  */
NMI_API sint8 m2m_wifi_configure_sntp(uint8 *pu8NTPServerName, uint8 u8NTPServerNameLength, tenuSNTPUseDHCP useDHCP)
/* Configures what NTP server the SNTP client should use.  */
NMI_API sint8 m2m_wifi_configure_sntp(uint8 *pu8NTPServerName, uint8 u8NTPServerNameLength, tenuSNTPUseDHCP useDHCP)
{
	tstrM2MSNTPConfig strSNTPConfig;
	if(u8NTPServerNameLength > M2M_NTP_MAX_SERVER_NAME_LENGTH)
		return M2M_ERR_FAIL;
	m2m_memcpy((uint8*)strSNTPConfig.acNTPServer, pu8NTPServerName, u8NTPServerNameLength);
	strSNTPConfig.acNTPServer[u8NTPServerNameLength] = '\0';
	strSNTPConfig.enuUseDHCP = useDHCP;
	return hif_send(M2M_REQ_GROUP_WIFI, M2M_WIFI_REQ_CONFIG_SNTP,
		(uint8*)&strSNTPConfig, sizeof(tstrM2MSNTPConfig), NULL, 0,0);
}