This repository contains the coreSNTP library, a client library to use Simple Network Time Protocol (SNTP) to synchronize device clocks with internet time. This library implements the SNTPv4 specification defined in RFC 4330.
An SNTP client can request time from both NTP and SNTP servers. According to the SNTPv4 specification, "_To an NTP or SNTP server, NTP and SNTP clients are indistinguishable; to an NTP or SNTP client, NTP and SNTP servers are indistinguishable._", thereby, allowing SNTP clients to request time from NTP servers.
coreSNTP v1.2.0 source code is part of the FreeRTOS 202210.00 LTS release.
The API reference documentation for the coreSNTP library version released in FreeRTOS/FreeRTOS can be viewed from the freertos.org website.
This repo uses Git Submodules to bring in dependent components.
To clone using HTTPS: git clone https://github.com/FreeRTOS/coreSNTP.git --recurse-submodules
Using SSH: git clone git@github.com:FreeRTOS/coreSNTP.git --recurse-submodules
If you have downloaded the repo without using the --recurse-submodules
argument, you need to run: git submodule update --init --recursive