From 81378d80e4fc5445436f1bd771444a78312788f0 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Mon, 10 Feb 2025 13:45:39 +0100 Subject: [PATCH] add unit in variable --- src/smq/snmp/snmp.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/smq/snmp/snmp.go b/src/smq/snmp/snmp.go index 080cfdc..f6367c3 100644 --- a/src/smq/snmp/snmp.go +++ b/src/smq/snmp/snmp.go @@ -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