calmh/node-snmp-native

issue to do session.set({ oid: [.......], value: 0, type: 2 } ...

Closed this issue · 2 comments

hello,

I have the following error when trying to set a value 0 with type 2.
"Error: Missing required option value."

I had to change the line from
} else if (!options.value) {
to
} else if (!options.value && options.value != 0) {

erwan

Indeed. This has now been corrected by a pull request, in 0875d11. Thanks for reporting it, sorry for not getting back to you quicker.

Included in 1.0.10