I'm trying to figure out how to use the SNTP functionality built into the DEIPcK library, but cannot find an example anywhere. Does anyone have an example of how to use this part of the library?
Based on my review of the SNTP library itself, it appears that I'll need to call SNTPv4Init followed by a call to either SNTPv4GetNTPEpochTime or SNTPv4GetUNIXEpochTime to get real time, which can be used to configure an RTC to continue to keep track of time. But I don't understand all the arguments that these functions require to be able to use them.
Thanks in advance for any example code anyone is willing to share.
Question
pappastech
I'm trying to figure out how to use the SNTP functionality built into the DEIPcK library, but cannot find an example anywhere. Does anyone have an example of how to use this part of the library?
Based on my review of the SNTP library itself, it appears that I'll need to call SNTPv4Init followed by a call to either SNTPv4GetNTPEpochTime or SNTPv4GetUNIXEpochTime to get real time, which can be used to configure an RTC to continue to keep track of time. But I don't understand all the arguments that these functions require to be able to use them.
Thanks in advance for any example code anyone is willing to share.
Tom
Link to comment
Share on other sites
10 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.