[Issue #1] - Adding UpdateInterval config value to set how long to wait in between each update loop, in seconds
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"time"
|
||||||
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
WifiSSID = "My Wifi Name"
|
WifiSSID = "My Wifi Name"
|
||||||
WifiPass = "SecretWifiPassword"
|
WifiPass = "SecretWifiPassword"
|
||||||
@@ -12,4 +16,6 @@ const (
|
|||||||
NodeName = "Studio Weather"
|
NodeName = "Studio Weather"
|
||||||
NodeID = "studio_env"
|
NodeID = "studio_env"
|
||||||
ClientID = "pico2w_studio_env"
|
ClientID = "pico2w_studio_env"
|
||||||
|
|
||||||
|
UpdateInterval = 30 * time.Second
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user