In Node-red I would like to use e.g. the values from a dropdown list to send to an SNMP-set command. As I understand the snmp-set node uses msg.varbinds to get its data. But how do I refer to the value coming from the dropdown list in the msg.varbinds input, as it looks JSON to me
This is what I have in the Varbinds window. I thought I just had to refer to the msg.payload coming from the dropdown element, but that seems to be too easy.
[ {
"oid" : "1.3.6.1.4.1.5835.3.1.3.1.38.1.1",
"type" : "OctetString",
"value" : msg.payload
}
]
This is by the way the output from my dropdown list in the debug window.
9/23/2019, 8:13:04 PMnode: b4c9ef70.0f38d
msg : Object
object payload: "14300000000"
socketid: "Xc-CPsZX-CouQVRAAAAA"
_msgid: "b77a7c3f.8645c"