sensor labels
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user