Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle SNMP SET on an Integer type value #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ apply plugin: 'java'
mainClassName = 'snmp.Main'
sourceCompatibility = 1.7
targetCompatibility = 1.7
version = '0.1.14'
version = '0.1.15'

repositories {
mavenCentral()
Expand Down
2 changes: 1 addition & 1 deletion dslink.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dslink-java-snmp",
"version": "0.1.14",
"version": "0.1.15",
"description": "A dslink for snmp",
"license": "GNU GPL",
"main": "bin/dslink-java-snmp",
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/snmp/SnmpNode.java
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ public void handle(ValuePair event) {
Value syntax = vnode.getAttribute("syntax");
if (oid == null || syntax == null)
return;
String valstring = event.getCurrent().getString();
String valstring = event.getCurrent().toString();
int syntaxInt = syntax.getNumber().intValue();
if (syntaxInt == SMIConstants.SYNTAX_NULL)
return;
Expand Down