Go Down

Topic: How do I sync the internal clock with NTP over WiFi? (Read 746 times) previous topic - next topic

Lectere

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!

PeterH

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.
I only provide help via the forum - please do not contact me for private consultancy.

Lectere

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

PaulS


Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy