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

How to create Model - Cannot set Instances Class for Object 150 because no model is defined for this id #82

Closed
maridikirankumar opened this issue Feb 23, 2016 · 1 comment

Comments

@maridikirankumar
Copy link

Hi Team,

I am trying to learn leshan, started implementing custom object on the client side and ended up with following error.
I am no expert in Java, may be its basic question. but can any one help me how to and where to create the model.

I tried going through the code to see if there is any example object, but i could not find. If some one can point me to the class then i can try to learn from it.

thanks much your help is much appreciated.

Exception in thread "main" java.lang.IllegalArgumentException: Cannot set Instances Class for Object 150 because no model is defined for this id. at org.eclipse.leshan.client.resource.ObjectsInitializer.setInstancesForObject(ObjectsInitializer.java:79) at org.eclipse.leshan.client.demo.LeshanClientDemo.createAndStartClient(LeshanClientDemo.java:264) at org.eclipse.leshan.client.demo.LeshanClientDemo.main(LeshanClientDemo.java:200)

@maridikirankumar maridikirankumar changed the title Cannot set Instances Class for Object 150 because no model is defined for this id How to create Model - Cannot set Instances Class for Object 150 because no model is defined for this id Feb 23, 2016
@maridikirankumar
Copy link
Author

never mind got it.

if someone is looking for the same then please open leshan/leshan-core/src/main/resources/oma-objects-spec.json and edit the model

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant