Adafruit includes two example sketches which involve obtaining the time wirelessly: ntptest and InternetTime.
ntptest utilizes the sntp client located in Adafruit_CC3000/utility/sntp.h.
InternetTime directly queries pool.ntp.org over a UDP connection.
What is the motivation of having an sntp client in the first place?
Is there something special in the way the sntp client performs synchronization?
What is the purpose of the CC3000's sntp client?
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 3
- Joined: Tue Dec 10, 2013 6:20 pm
- adafruit_support_mike
- Posts: 67454
- Joined: Thu Feb 11, 2010 2:51 pm
Re: What is the purpose of the CC3000's sntp client?
Short version: yes, a client is very different from a query.
Take a look at the file utility/sntp.h in the CC3000 library for more information. It starts off with an extract from RFC2030, which describes the SNTP packet format and what's done with it.
Take a look at the file utility/sntp.h in the CC3000 library for more information. It starts off with an extract from RFC2030, which describes the SNTP packet format and what's done with it.
Please be positive and constructive with your questions and comments.