From c1e6e08e458ab3d74ac553769c64abfcb3d6a52a Mon Sep 17 00:00:00 2001 From: Daniel Ledda Date: Sun, 1 Nov 2020 01:09:37 +0100 Subject: [PATCH] finding a bug --- server.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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"` }