diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2024-11-29 14:07:36 -0500 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2024-11-29 14:07:36 -0500 |
| commit | d0c60c35247b5282271cb0e8e05e64d548a6afd5 (patch) | |
| tree | 84e2614451968510a5c7e34c4f1f6c7ce578d6b5 | |
| parent | 802d5a33bd77b3d177d3873c225daf2edc5286da (diff) | |
| download | soen422-d0c60c35247b5282271cb0e8e05e64d548a6afd5.zip | |
increase sample rate
| -rw-r--r-- | SensorStation/SensorStation.ino | 2 | ||||
| -rw-r--r-- | server/server.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/SensorStation/SensorStation.ino b/SensorStation/SensorStation.ino index b863459..0e118c4 100644 --- a/SensorStation/SensorStation.ino +++ b/SensorStation/SensorStation.ino @@ -20,7 +20,7 @@ enum pins { enum times { SECOND = 1000, - PERIOD = 30*SECOND, // Humidity sample period. + PERIOD = 15*SECOND, // Humidity sample period. DEBOUNCE = 50, // Button debounce time. diff --git a/server/server.go b/server/server.go index 0b9e92c..a9a8b2e 100644 --- a/server/server.go +++ b/server/server.go @@ -9,7 +9,7 @@ import ( const ( addr = ":9090" - historySize = 10000 // Number of old samples to keep in memory. + historySize = 100_000 // Number of old samples to keep in memory. targetHumidityDefault = 35.0 ) |