From 844d9270180a96dc90153dc6ae4b82b1327046b1 Mon Sep 17 00:00:00 2001 From: Daniel Ledda Date: Sun, 1 Nov 2020 01:08:16 +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 dd39e02..46272b1 100644 --- a/server.go +++ b/server.go @@ -21,10 +21,10 @@ type SnapshotRecord struct { } type SnapshotSubmission struct { - Timestamp time.Time `json:"time"` - Temp float32 `json:"temp"` - Humidity float32 `json:"humidity"` - Co2 float32 `json:"co2"` + Timestamp string `json:"time"` + Temp string `json:"temp"` + Humidity string `json:"humidity"` + Co2 string `json:"co2"` }