File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ unsigned long NTPUtils::getTime(UDP & udp)
54
54
udp.stop ();
55
55
return 0 ;
56
56
}
57
-
57
+
58
58
uint8_t ntp_packet_buf[NTP_PACKET_SIZE];
59
59
udp.read (ntp_packet_buf, NTP_PACKET_SIZE);
60
60
udp.stop ();
@@ -81,7 +81,7 @@ unsigned long NTPUtils::getTime(UDP & udp)
81
81
void NTPUtils::sendNTPpacket (UDP & udp)
82
82
{
83
83
uint8_t ntp_packet_buf[NTP_PACKET_SIZE] = {0 };
84
-
84
+
85
85
ntp_packet_buf[0 ] = 0b11100011 ;
86
86
ntp_packet_buf[1 ] = 0 ;
87
87
ntp_packet_buf[2 ] = 6 ;
@@ -90,7 +90,7 @@ void NTPUtils::sendNTPpacket(UDP & udp)
90
90
ntp_packet_buf[13 ] = 0x4E ;
91
91
ntp_packet_buf[14 ] = 49 ;
92
92
ntp_packet_buf[15 ] = 52 ;
93
-
93
+
94
94
udp.beginPacket (NTP_TIME_SERVER, NTP_TIME_SERVER_PORT);
95
95
udp.write (ntp_packet_buf, NTP_PACKET_SIZE);
96
96
udp.endPacket ();
You can’t perform that action at this time.
0 commit comments