sensor labels
This commit is contained in:
@ -4,6 +4,7 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"fmt"
|
"fmt"
|
||||||
"bytes"
|
"bytes"
|
||||||
|
"strconv"
|
||||||
"encoding/base64"
|
"encoding/base64"
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
@ -21,7 +22,7 @@ type hottisThreeWayThermometerValues struct {
|
|||||||
Value3 int32
|
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)
|
key := strconv.FormatUint(sensorAddress, 10)
|
||||||
if sensorName, exists := (*sensorsMap)[key]; exists {
|
if sensorName, exists := (*sensorsMap)[key]; exists {
|
||||||
return sensorName
|
return sensorName
|
||||||
|
Reference in New Issue
Block a user