mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-11 16:06:38 +02:00
add #114 ntp_server_name and port to eeprom
This commit is contained in:
parent
966a25bcd0
commit
2c177fbfa8
5 changed files with 40 additions and 7 deletions
|
@ -391,8 +391,8 @@ time_t Main::getNtpTime(void) {
|
|||
uint8_t buf[NTP_PACKET_SIZE];
|
||||
uint8_t retry = 0;
|
||||
|
||||
WiFi.hostByName (TIMESERVER_NAME, timeServer);
|
||||
mUdp->begin(TIME_LOCAL_PORT);
|
||||
WiFi.hostByName(NTP_SERVER_NAME, timeServer);
|
||||
mUdp->begin(NTP_LOCAL_PORT);
|
||||
|
||||
|
||||
sendNTPpacket(timeServer);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue