NTPClient
NTPClient copied to clipboard
Connect to a NTP server
add setPoolServerIP (accepts IP address), setPoolServerAddress (domain as well as IP address) methods Fixes https://github.com/arduino-libraries/NTPClient/issues/103
Added bellow two methods to return Date and Time information together as a struct and formatted datetime string with a given format. - getDateTime - getFormattedDateTime
timeOffset itself was already a long, but setTimeOffset only accepted integers. This should allow it to be set as long, so more timezones can be used.
Added error checks on the sending and receiving of the NTP packets.
I use the NTPClient library for an ESP8266 project, based on Wemos D1 mini. Normally, this library provides correct time data, with a maximum 2s deviation. But some days, let's...
https://github.com/arduino-libraries/NTPClient/blob/master/NTPClient.cpp#L200 When `this->_udp->beginPacket(...)` fails because of DNS lookup failure or some other reason this causes the device to panic when it tries to read the result.
Hi! Please add setPoolServerIP. Needed it my application. thx and BR Rainer
overloaded function getDay, getHours, getMinutes and getSeconds with extern epoch time as argument added.
I have NTPClient on a remote ESP32 monitor that checks the time once a day normally. If it fails, it tries again in half an hour. It has been running...