I am using MQX V 4.1 and using SNTP_oneshot to set real time clock for my embedded system. After many hours, this call starts timing out and never recovers. The TCP/IP stack continues to work, and the RTCS_resolve_ip_address() does give me an IP address for the nist servers. Also, I have verified that I do have enough memory(RAM) at this time.
Any Ideas would be appreciated.
Hi SHelley:
Which error code returns with SNTP_oneshot ?
Regards
Daniel
Hi Daniel,
0x1103 or a timeout
Thanks,
Shelley
Hi Shelley:
It seems a network issue. Maybe the gateway is unreachable or other network issue. Your board can't get a valid SNTP packet.
Regards
Daniel
Hi,
Normally i would say this is true, except that the code runs perfectly and then is unable to get NTP forever after that time.
I have watched it and occasionally see the NTP fail, which I would expect. But in this case, the NTP continually fails and never recovers.
Thanks, Shelley