sensor labels
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful

This commit is contained in:
2024-07-31 16:14:29 +02:00
parent f10f9afd8b
commit 97c6a045d2

View File

@ -4,6 +4,7 @@ import (
"log"
"fmt"
"bytes"
"strconv"
"encoding/base64"
"encoding/binary"
"encoding/json"
@ -21,7 +22,7 @@ type hottisThreeWayThermometerValues struct {
Value3 int32
}
func getSensorName(sensorsMap *map[string]string, uint64_t sensorAddress) string {
func getSensorName(sensorsMap *map[string]string, sensorAddress uint64) string {
key := strconv.FormatUint(sensorAddress, 10)
if sensorName, exists := (*sensorsMap)[key]; exists {
return sensorName