1 Commits

Author SHA1 Message Date
gballan c60ef1c093 [Issue #1] - Adding UpdateInterval config value to set how long to wait in between each update loop, in seconds
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful
2026-09-07 00:34:29 -04:00
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -1,5 +1,9 @@
package main
import (
"time"
)
const (
WifiSSID = "My Wifi Name"
WifiPass = "SecretWifiPassword"
@@ -12,4 +16,6 @@ const (
NodeName = "Studio Weather"
NodeID = "studio_env"
ClientID = "pico2w_studio_env"
UpdateInterval = 30 * time.Second
)
+1 -1
View File
@@ -346,6 +346,6 @@ func main() {
}
}
time.Sleep(30 * time.Second)
time.Sleep(UpdateInterval)
}
}