add unit in variable
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful

This commit is contained in:
Wolfgang Hottgenroth 2025-02-10 13:45:39 +01:00
parent b0def60a92
commit 81378d80e4

View File

@ -18,6 +18,7 @@ type variable_t struct {
Label string `json:"label"` Label string `json:"label"`
Variable string `json:"variable"` Variable string `json:"variable"`
Value string `json:"value"` Value string `json:"value"`
Unit string `json:"unit"`
} }
type message_t struct { type message_t struct {
@ -130,6 +131,7 @@ func Start() {
Label: oidTopic.Label, Label: oidTopic.Label,
Variable: oidTopic.OID, Variable: oidTopic.OID,
Value: convertedValue, Value: convertedValue,
Unit: "",
} }
message.Variables[oidTopic.Label] = v message.Variables[oidTopic.Label] = v