Tool/software:
Hi,
My customer wants to get timestamp from NTP server using SNTP_getTime() API.
He refers to below document.
https://software-dl.ti.com/simplelink/esd/simplelink_msp432e4_sdk/4.20.00.12/docs/ns/html/group__ti__net__sntp__SNTP.html#gaf28840559d2f511e3fc376102bbc8837
He wanted to change NTP server to "ntp.nict.jp", then the code is like below.
int32_t retVal; uint32_t seconds; uint32_t secondsFraction; SlNetSock_Timeval_t timeval; timeval.tv_sec = 5; timeval.tv_usec = 0; uint64_t ntpTimeStamp = 0; const char* srvList[] = {"ntp.nict.jp"}; int numServers = 1; ret = SNTP_getTime(srvList, numServers, &timeval, &ntpTimeStamp);
But it seems timestamp taken is not from "ntp.nict.jp" server and default server list is used.
Where he needs to modify to take timestamp from "ntp.nict.jp"?
Thanks and regards,
Koichiro Tashiro