MeterLogger
sntp.c File Reference
#include "lwip/sntp.h"
#include "osapi.h"
#include "os_type.h"
#include "lwip/opt.h"
#include "lwip/timers.h"
#include "lwip/udp.h"
#include "lwip/dns.h"
#include "lwip/ip_addr.h"
#include "lwip/pbuf.h"
Include dependency graph for sntp.c:

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.