STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
sntp.c File Reference
#include "lwip/apps/sntp.h"
#include "lwip/opt.h"
#include "lwip/lwip_timers.h"
#include "lwip/udp.h"
#include "lwip/dns.h"
#include "lwip/ip_addr.h"
#include "lwip/pbuf.h"
#include "lwip/dhcp.h"
#include <string.h>
#include <time.h>

Go to the source code of this file.

Detailed Description

SNTP client module

This is simple "SNTP" client for the lwIP raw API. It is a minimal implementation of SNTPv4 as specified in RFC 4330.

For a list of some public NTP servers, see this link : http://support.ntp.org/bin/view/Servers/NTPPoolServers

Todo:
:
  • set/change servers at runtime
  • complete SNTP_CHECK_RESPONSE checks 3 and 4
  • support broadcast/multicast mode?

Definition in file sntp.c.