Skip to content

Commit b02c75e

Browse files
committed
Fixed too long update interval to 10 minutes
1 parent 79605ce commit b02c75e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

examples/WeatherStationDemo/WeatherStationDemo.ino

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ See more at http://blog.squix.ch
4242
const char* WIFI_SSID = "yourssid";
4343
const char* WIFI_PWD = "yourpassw0rd";
4444

45+
// Setup
46+
const int UPDATE_INTERVAL_SECS = 10 * 60; // Update every 10 minutes
47+
4548
// Display Settings
4649
const int I2C_DISPLAY_ADDRESS = 0x3c;
4750
const int SDA_PIN = D3;
@@ -145,7 +148,7 @@ void setup() {
145148

146149
updateData(&display);
147150

148-
ticker.attach(10 * 60 * 10, setReadyForWeatherUpdate);
151+
ticker.attach(UPDATE_INTERVAL_SECS, setReadyForWeatherUpdate);
149152

150153
}
151154

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=ESP8266 Weather Station
2-
version=1.0.1
2+
version=1.0.2
33
author=Daniel Eichhorn
44
maintainer=Daniel Eichhorn <[email protected]>
55
sentence=ESP8266 based internet connected Weather Station

0 commit comments

Comments
 (0)