Skip to content

Commit 4014095

Browse files
committed
- added link to NPT on Arduino Tutorial and WikiPedia
1 parent e01a981 commit 4014095

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/utility/NTPUtils.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#include "NTPUtils.h"
22
#include "Arduino.h"
3+
/*
4+
This Utility Class is derived from the example code found here https://www.arduino.cc/en/Tutorial/UdpNTPClient
5+
For more information on NPT (Network Time Protocol) you can refer to this WikiPedia article https://en.wikipedia.org/wiki/Network_Time_Protocol
6+
*/
7+
38

49
// could be a constexpr in C++14
510
static time_t cvt_TIME(char const *time) {

src/utility/NTPUtils.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#ifndef __NTP_UTILS__
22
#define __NTP_UTILS__
3+
/*
4+
This Utility Class is derived from the example code found here https://www.arduino.cc/en/Tutorial/UdpNTPClient
5+
For more information on NPT (Network Time Protocol) you can refer to this WikiPedia article https://en.wikipedia.org/wiki/Network_Time_Protocol
6+
*/
37

48
#include "Udp.h"
59
#include <time.h>

0 commit comments

Comments
 (0)