Fix issue #20 causing timeouts in examples

pull/39/head 0.7.9
Rop 7 years ago
parent 02b30ed360
commit e510f1b480

@ -376,6 +376,8 @@ If you provide no location ( `YourTZ.setLocation()` ), ezTime will attempt to do
In the case of `SERVER_ERROR`, `errorString()` returns the error from the server, which might be "Country Spans Multiple Timezones", "Country Not Found", "GeoIP Lookup Failed" or "Timezone Not Found".
If you execute multiple calls to `setLocation`, make sure they are more than 3 seconds apart, because the server will not answer if calls from the same IP come within 3 seconds of one another (see below).
 
### timezoned.rop.nl

@ -57,10 +57,17 @@ void setup() {
Serial.print(F("New Zealand: "));
Serial.println(myTZ.dateTime());
// Wait a little bit to not trigger DDoS protection on server
// See https://github.com/ropg/ezTime#timezonedropnl
delay(5000);
// Or country codes for countries that do not span multiple timezones
myTZ.setLocation(F("de"));
Serial.print(F("Germany: "));
Serial.println(myTZ.dateTime());
Serial.println(myTZ.dateTime());
// Same as above
delay(5000);
// See if local time can be obtained (does not work in countries that span multiple timezones)
Serial.print(F("Local (GeoIP): "));

@ -23,10 +23,17 @@ void setup() {
Serial.print(F("New Zealand: "));
Serial.println(myTZ.dateTime());
// Wait a little bit to not trigger DDoS protection on server
// See https://github.com/ropg/ezTime#timezonedropnl
delay(5000);
// Or country codes for countries that do not span multiple timezones
myTZ.setLocation(F("de"));
Serial.print(F("Germany: "));
Serial.println(myTZ.dateTime());
Serial.println(myTZ.dateTime());
// Same as above
delay(5000);
// See if local time can be obtained (does not work in countries that span multiple timezones)
Serial.print(F("Local (GeoIP): "));

@ -11,7 +11,7 @@
"type": "git",
"url": "https://github.com/ropg/ezTime"
},
"version": "0.7.8",
"version": "0.7.9",
"framework": "arduino",
"platforms": "*",
"build": {

@ -1,5 +1,5 @@
name=ezTime
version=0.7.8
version=0.7.9
author=Rop Gonggrijp
maintainer=Rop Gonggrijp
sentence=ezTime - pronounced "Easy Time" - is a very easy to use Arduino time and date library that provides NTP network time lookups, extensive timezone support, formatted time and date strings, user events, millisecond precision and more.

Loading…
Cancel
Save