cancel
Showing results for 
Search instead for 
Did you mean: 

SPWF01SA NTP client

Manfred Dietrich
Associate II
Posted on January 12, 2017 at 13:21

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-ntp
1 ACCEPTED SOLUTION

Accepted Solutions
Posted on January 12, 2017 at 19:58

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.

View solution in original post

2 REPLIES 2
Posted on January 12, 2017 at 19:58

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.

Posted on January 12, 2017 at 20:09

 

Hi Gerardo,

SimpleNTP is accurate enough.

Thanks for your quick answer.

Manfred