add unit in variable
This commit is contained in:
parent
b0def60a92
commit
81378d80e4
@ -18,6 +18,7 @@ type variable_t struct {
|
||||
Label string `json:"label"`
|
||||
Variable string `json:"variable"`
|
||||
Value string `json:"value"`
|
||||
Unit string `json:"unit"`
|
||||
}
|
||||
|
||||
type message_t struct {
|
||||
@ -130,6 +131,7 @@ func Start() {
|
||||
Label: oidTopic.Label,
|
||||
Variable: oidTopic.OID,
|
||||
Value: convertedValue,
|
||||
Unit: "",
|
||||
}
|
||||
message.Variables[oidTopic.Label] = v
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user