From b5f0c0d86fbd7cd9d95105c7b2ef17b82eb959bf Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Fri, 9 Feb 2024 14:13:27 +0100 Subject: [PATCH] fix lsn50 data format --- src/udi/handlers/ttn/models/draginoLsn50/draginoLsn50.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/udi/handlers/ttn/models/draginoLsn50/draginoLsn50.go b/src/udi/handlers/ttn/models/draginoLsn50/draginoLsn50.go index 3a7a949..cfa6892 100644 --- a/src/udi/handlers/ttn/models/draginoLsn50/draginoLsn50.go +++ b/src/udi/handlers/ttn/models/draginoLsn50/draginoLsn50.go @@ -20,9 +20,9 @@ type message struct { ALARM_status string `json:"ALARM_status"` Bat float32 `json:"BatV"` Work_mode string `json:"Work_mode"` - Temp_Black string `json:"Temp_Black"` - Temp_Red string `json:"Temp_Red"` - Temp_White string `json:"Temp_White"` + Temp_Black float32 `json:"Temp_Black"` + Temp_Red float32 `json:"Temp_Red"` + Temp_White float32 `json:"Temp_White"` } func Parse(fPort int, decodedPayload []byte, _ string, variables *map[string]database.VariableType, attributes *map[string]interface{}, device *database.Device) error {