1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00

snmp clean up fix

This commit is contained in:
Dave Conway-Jones 2022-09-14 15:21:14 +01:00
parent 75a4361435
commit 3dcf739c0d
No known key found for this signature in database
GPG Key ID: 88BA2B8A411BE9FF
2 changed files with 1 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{ {
"name" : "node-red-node-snmp", "name" : "node-red-node-snmp",
"version" : "1.0.4", "version" : "1.0.5",
"description" : "A Node-RED node that gets and sets SNMP oid values. Supports v1, v2c and v3", "description" : "A Node-RED node that gets and sets SNMP oid values. Supports v1, v2c and v3",
"dependencies" : { "dependencies" : {
"net-snmp" : "^3.8.2" "net-snmp" : "^3.8.2"

View File

@ -456,10 +456,6 @@ module.exports = function (RED) {
sess.on("error", function (err) { sess.on("error", function (err) {
node.error(err, msg); node.error(err, msg);
}) })
//move response array & feedCb to inside `node.on("input",` to avoid subsequent
// calls overwriting results from previous operations (each call gets own result/response)
const response = [];
sess.walk(msg.oid, maxRepetitions, feedCb, function (error) { sess.walk(msg.oid, maxRepetitions, feedCb, function (error) {
if (error) { if (error) {
node.error(error.toString(), msg); node.error(error.toString(), msg);