The NTP (Network Time Protocol) client library is able synchronize your internal clocks with accurate time sources on the internet. By leveraging the NTP protocol, these libraries enable devices to maintain precise timekeeping, which is crucial for various applications under MbedCE.
- Create a new project according to MbedCE instructions
- Add this as submodule to your project via
git submodule add --depth 1 https://github.com/mbed-ce-libraries-examples/mbed-NTP mbed-NTP
- The top level
CMakeList.txt
(in root of your project) should be modified according to this wiki page#[[link MbedOS and its libraries (necessary everytime)]] target_link_libraries(${CMAKE_PROJECT_NAME} mbed-os mbed-netsocket) ### link user library (if needed) target_link_libraries(${CMAKE_PROJECT_NAME} mbed-ntp)
- Make your program
- Build the project
This library is not tested yet.