Skip to content

Commit

Permalink
#1155: Fix LwM2mResourceInstance.newInstance to support ULong
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernard31 committed Nov 16, 2021
1 parent 9f9e063 commit 553afdc
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -101,6 +101,10 @@ public static LwM2mResourceInstance newInstance(int id, Object value, Type type)
if (!(value instanceof ObjectLink))
throw new LwM2mNodeException(doesNotMatchMessage);
break;
case UNSIGNED_INTEGER:
if (!(value instanceof ULong))
throw new LwM2mNodeException(doesNotMatchMessage);
break;
default:
throw new LwM2mNodeException(String.format("Type %s is not supported", type.name()));
}
Expand Down

0 comments on commit 553afdc

Please sign in to comment.