AVSystem / Anjay-java

Anjay LwM2M client library port for Java applications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

InstanceCreate and InstanceRemove

Kushma opened this issue · comments

commented

Hello,

I have referred the demo code "DemoObject.java" and I am trying to understand how instanceCreate and instanceRemove callbacks work. I am currently not getting a callback to either of these functions when I am trying to create or delete an object on the server.

The demo code only says:
@OverRide
public void instanceCreate(int iid) {
throw new UnsupportedOperationException();
}

Can you please help me understand why this is happening? And in case we want to debug what is the function in Anjay C that calls instanceCreate(int iid)/instanceRemove(int iid) in Java, can you please point out that?