2017-01-12 04:21 AM
Hi,
Is there a sample implementation of a NTP client to get the time from a timeserver?
I use the SPWF01SA together with a STM32F401.
BR,
Manfred
#spwf01-ntpSolved! Go to Solution.
2017-01-12 10:58 AM
Hi Manfred,
if SimpleNTP is enough, you can open a simple UDP socket (AT+S.SOCKON) and write (AT+S.SOCKW) a 48 byte requesto to server. Than expect a 48 byte reply, and read (AT+S.SOCKR) it.
http://ceng393.cankaya.edu.tr/uploads/files/file/ntp_project-1.pdf
a simple flow.2017-01-12 10:58 AM
Hi Manfred,
if SimpleNTP is enough, you can open a simple UDP socket (AT+S.SOCKON) and write (AT+S.SOCKW) a 48 byte requesto to server. Than expect a 48 byte reply, and read (AT+S.SOCKR) it.
http://ceng393.cankaya.edu.tr/uploads/files/file/ntp_project-1.pdf
a simple flow.2017-01-12 12:09 PM - last edited on 2024-04-08 12:29 PM by Peter BENSCH
Posted on January 12, 2017 at 20:09
Hi Gerardo,
SimpleNTP is accurate enough.
Thanks for your quick answer.
Manfred