What is the purpose of the CC3000's sntp client?

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
jamesfw
 
Posts: 3
Joined: Tue Dec 10, 2013 6:20 pm

What is the purpose of the CC3000's sntp client?

Post by jamesfw »

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?

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: What is the purpose of the CC3000's sntp client?

Post by adafruit_support_mike »

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.

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”