Please note: This repository is deprecated and it is no longer actively maintained.
This is an example application shows how to use NTP servers in mbed OS. It uses the library found here: https://github.com/ARMmbed/ntp-client.
The example currently uses the EthernetInterface, however it is compatible with any NetworkInterface supported by mbed OS.
Import the application with mbed CLI.
mbed import https://github.com/ARMmbed/ntp-client-example
cd ntp-client-example
Now compile the example. For instance, this would compile the application for the K64F with the ARM GCC toolchain.
mbed compile -m K64F -t GCC_ARM
The binary should now be available in the BUILD
folder.
The software is provided under the Apache-2.0 license. Contributions to this project are accepted under the same license.