add #114 ntp_server_name and port to eeprom

This commit is contained in:
stefan123t 2022-08-07 01:10:42 +02:00
parent 966a25bcd0
commit 2c177fbfa8
5 changed files with 40 additions and 7 deletions

View file

@ -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);