Skip to content

Commit

Permalink
Change default NTP server
Browse files Browse the repository at this point in the history
ntp4.stratum2.ru doesn't exist anymore
  • Loading branch information
anyuta1166 committed Jan 24, 2023
1 parent 6a49596 commit 7ca1320
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions watermeter/watermeter.ino
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ extern "C" {

/* Name and Version */
#define PLATFORM "Wemos D1 mini & Micro SD"
#define MODULE_VERSION "v2.2.2"
#define MODULE_VERSION "v2.2.3"
#define MODULE_NAME "WaterMeter " MODULE_VERSION
#define WEB_WATERMETER_FIRST_NAME "Water"
#define WEB_WATERMETER_LAST_NAME "Meter"
Expand All @@ -46,7 +46,7 @@ extern "C" {

/* For TimeLib (NTP and clock) */
#define SYNC_TIME 21600 /* Interval sync to NTP Server in sec */
#define NTP_SERVER_NAME "ntp4.stratum2.ru" /* URL of NTP server */
#define NTP_SERVER_NAME "ru.pool.ntp.org" /* URL of NTP server */
#define NTP_LOCAL_PORT 8888 /* NTP local port */
unsigned int localPort = NTP_LOCAL_PORT;
const int NTP_PACKET_SIZE = 48; /* NTP time is in the first 48 bytes of message */
Expand Down

0 comments on commit 7ca1320

Please sign in to comment.