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:
parent
75a4361435
commit
3dcf739c0d
@ -1,6 +1,6 @@
|
||||
{
|
||||
"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",
|
||||
"dependencies" : {
|
||||
"net-snmp" : "^3.8.2"
|
||||
|
@ -456,10 +456,6 @@ module.exports = function (RED) {
|
||||
sess.on("error", function (err) {
|
||||
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) {
|
||||
if (error) {
|
||||
node.error(error.toString(), msg);
|
||||
|
Loading…
Reference in New Issue
Block a user