masterx1981
be86f1b324
update() return last sync state
...
As the update() function return false both if the forceUpdate fail, and also if the timeout isn't expired, we are not able to know if the last ntp update was fine.
Wouldn't be better to return true if the last sync was gone ok, and false if wasn't good?
2020-12-30 11:09:08 +01:00
masterx1981
b5a611a270
Added setPoolServer IP
2020-12-28 20:32:49 +01:00
Luigi
d7d8b4512b
Adding default port range ( #117 )
2020-09-07 17:14:47 +02:00
Alexander Entinger
aff9c6b008
Merge pull request #116 from luigigubello/random_local_port
...
Added method to set random local port
2020-09-03 15:17:48 +02:00
Luigi Gubello
f5673290fc
Changing long into unsigned int
2020-09-03 14:52:08 +02:00
Luigi Gubello
9e4323bcef
Adding range choice for setRandomPort()
2020-08-31 15:31:55 +02:00
Luigi Gubello
a8bdae7ca4
Added method to set random local port
...
Added method to set a random local port, so that the board needs not
to use always the same embedded local port for receiving NTP packets.
2020-08-31 02:25:05 +02:00
Alexander Entinger
894b21de11
Merge pull request #77 from arduino-libraries/add-missing-ctors
...
Added support for server IPAddress argument to NTPClient
2019-09-19 10:46:21 +02:00
Alexander Entinger
a80086968a
Fixing function signature error of 'NTPClient(UDP& udp, const char* poolServerName, long timeOffset)' (long timeOffset instead of int timeOffset) and adding the overloaded ctors also for an IPAddress
2019-09-19 10:24:53 +02:00
Alexander Entinger
ff9775d082
Merge branch 'sheffieldnick-ipaddress' - Manually resolving merge conflicts.
2019-09-19 10:00:42 +02:00
sheffieldnick
931c471697
Added support for server IPAddress argument to NTPClient
2019-09-19 10:00:23 +02:00
Alexander Entinger
18d4ac7eb1
Merge pull request #62 from jbrown123/master
...
Added packet flush before request in forceUpdate(). Fixes issue #49 - random clock delay
2019-09-19 08:38:46 +02:00
Alexander Entinger
9c16cb728b
Adding documentation of function 'getEpochTime' to README
2019-09-19 07:32:17 +02:00
Alexander Entinger
97cdcd7038
Merge pull request #56 from bitsy/patch-1
...
Update NTPClient.cpp
2019-09-19 06:37:49 +02:00
Alexander Entinger
151bbc5484
Releasing v3.2.0
2019-09-18 10:01:20 +02:00
James Brown
cfbe88a3e2
Added packet flush before request in forceUpdate(). Fixes issue #49 in the upstream repo
2019-01-12 13:32:05 -07:00
bitsy
712c58c18e
Update NTPClient.cpp
...
The NTPClient method update() has been changed to only return "TRUE" after a successful update. The following conditions return "FALSE":
- Interval duration requirement not met
- forceUpdate() times out
2018-09-16 21:11:26 -07:00
vincentVDB
020aaf868d
Update keywords.txt
...
forget ?
setTimeOffset KEYWORD2
setUpdateInterval KEYWORD2
setPoolServerName KEYWORD2
2018-07-11 08:05:00 -04:00
Peeter Normak
6bb8cdafc7
added method for changing time server
2018-06-27 12:23:36 +02:00
Tamas Karpati
10125217d9
Make getter methods const
2018-06-27 12:22:18 +02:00
Kosh
70d6ec4e90
Changed timeOffset from int to long to support timezones with more than 32000 seconds difference from GMT (eg, Australia +10 (36000)) ( #42 )
2018-06-27 12:17:09 +02:00
Testato
126ea3093b
Update README.md
2018-06-27 12:13:08 +02:00
Testato
ea200235c7
New default server
...
https://github.com/arduino-libraries/NTPClient/issues/34
2018-06-27 12:13:08 +02:00
pabloandresm
0825e0cc07
fixes updateInterval & lastUpdate variable type
2018-06-27 12:12:09 +02:00
Sandeep Mistry
9dc9ad184b
Version 3.1.0
2016-05-31 16:33:31 -04:00
Sandeep Mistry
9e96da6e44
Update CHANGELOG
2016-05-31 16:33:15 -04:00
Sandeep Mistry
3c25c4fa2c
Change email to arduino.cc
2016-05-31 16:29:40 -04:00
FWeinb
7433f7da88
Merge pull request #17 from SirUli/master
...
Added functions for changing the timeOffset and updateInterval later
2016-05-25 21:30:40 +02:00
Sandeep Mistry
d9264aadf3
Merge pull request #21 from g-goessel/patch-2
...
Update README.md
2016-05-22 08:23:15 -07:00
Sandeep Mistry
3bb667acb5
Merge pull request #20 from g-goessel/patch-1
...
Update README.md
2016-05-22 08:22:57 -07:00
g_goessel
87e20e0ff0
Update README.md
...
Fixed an error in a comment.
Was throwing `no matching function for call to 'NTPClient::NTPClient(const char [20], int, int)' ` otherwise
2016-05-21 21:15:49 +02:00
g_goessel
608ce2c003
Update README.md
...
This was probably not the speed you wanted :-)
2016-05-21 21:05:54 +02:00
FWeinb
3df8159c7f
Merge pull request #19 from ivankravets/patch-2
...
Update repo URL
2016-05-19 20:03:42 +02:00
Ivan Kravets
371bb848bb
Update repo URL
2016-05-19 20:08:23 +03:00
FWeinb
7716ba2471
Merge pull request #18 from ivankravets/patch-1
...
Add authors and version fields
2016-05-18 21:40:15 +02:00
Ivan Kravets
2f28de0e8c
Add Sandeep Mistry as co-author
2016-05-18 16:26:00 +03:00
Ivan Kravets
40b9ec5147
Add authors and version fields
2016-05-15 00:32:07 +03:00
Uli
85c4caca94
Fixed Readme
...
Initialization with a different timeserver had a missing ntpUDP
Added the default values for interval and offset to the comment of the
default constructor in the ReadMe
2016-05-14 12:08:45 +02:00
Uli
ac19e0d7db
Added functions for changing the timeOffset and updateInterval later
...
I added two functions:
```cpp
setTimeOffset(int timeOffset)
```
Allows you to set the offset at a later stage (e.g. upon timezone
changes or change from summertime to standard time)
```cpp
setUpdateInterval(int updateInterval)
```
Allows to set the interval at a later point. This was helpful when not
setting an offset at initialization and e.g. for other sync times during
special occasions.
2016-05-14 12:04:18 +02:00
Sandeep Mistry
e0fe10f578
Update library.properties
...
update URL
2016-04-19 09:09:24 -04:00
Sandeep Mistry
66f5e90123
Update CHANGELOG
2016-04-19 09:07:18 -04:00
Sandeep Mistry
fac9f516d7
Update README.md
...
Add Travis CI badge
2016-04-18 15:38:19 -04:00
FWeinb
0344dafb22
Merge pull request #16 from arduino-libraries/add-travis
...
Add travis build test
2016-04-18 21:33:51 +02:00
Fabrice Weinberg
9418eb8678
Initial add travis arduino build tests
2016-04-18 21:21:41 +02:00
Sandeep Mistry
fe79989b8b
Change return type of get components to int
2016-04-18 15:08:38 -04:00
Sandeep Mistry
9070f2b11f
Add changelog
2016-04-15 09:20:11 -04:00
Sandeep Mistry
9229123274
Rename getRawTime to getEpochTime
2016-04-15 09:09:23 -04:00
Sandeep Mistry
b0776ef19c
Return result of update() and forceUpdate()
2016-04-15 09:06:30 -04:00
Sandeep Mistry
8dfbf23463
Use hard tabs in keywords.txt
2016-04-15 09:03:45 -04:00
Sandeep Mistry
0167eaed14
Add flag to track if UDP was setup, setup in update if it hasn't been
2016-04-15 09:03:45 -04:00