calmh / node-snmp-native

Native Javascript SNMP library for Node.js
MIT License
252 stars 65 forks source link

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

Closed erwanj closed 12 years ago

erwanj commented 12 years ago

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

calmh commented 12 years ago

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

calmh commented 12 years ago

Included in 1.0.10