Pages: [1]   Go Down
Author Topic: How do I sync the internal clock with NTP over WiFi?  (Read 650 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 22
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I've got a WiFi shield, and I connect to the internet succesfully, but I need to sync the internal clock with a NTP server.

I can find ton's of Ethernet Sheild examples. But Since I only have a Wifi sheild...

It kinda get stuck on the UDP thing, any help/example would be great!

Thanks!
Logged

UK
Offline Offline
Shannon Member
****
Karma: 223
Posts: 12568
-
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I wouldn't be surprised if there was already a library giving NTP protocol support, but if you can't find one then you would need to write your own. The NTP protocol isn't particularly complex, and you would just need to find a suitable NTP server to sync to. NIST is usually a good bet if you can't find somebody closer, but you may find you already have a time server in your local domain.
Logged

I only provide help via the forum - please do not contact me for private consultancy.

Offline Offline
Newbie
*
Karma: 0
Posts: 22
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I've found an example which needs EthernetUdp, can you also use this with WiFi?
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 601
Posts: 48543
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
can you also use this with WiFi?
No.
Logged

Pages: [1]   Go Up
Jump to: