diff --git a/server.go b/server.go index 46272b1..dd39e02 100644 --- a/server.go +++ b/server.go @@ -21,10 +21,10 @@ type SnapshotRecord struct { } type SnapshotSubmission struct { - Timestamp string `json:"time"` - Temp string `json:"temp"` - Humidity string `json:"humidity"` - Co2 string `json:"co2"` + Timestamp time.Time `json:"time"` + Temp float32 `json:"temp"` + Humidity float32 `json:"humidity"` + Co2 float32 `json:"co2"` }