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

Add new object #1606

Closed
pmartinez-tst opened this issue Apr 12, 2024 · 3 comments
Closed

Add new object #1606

pmartinez-tst opened this issue Apr 12, 2024 · 3 comments
Labels
question Any question about leshan

Comments

@pmartinez-tst
Copy link

Question

My application contains a String. It is a string about 265 characters max.
I have checked Open Mobile documentation related to objects (https://technical.openmobilealliance.org/OMNA/LwM2M/LwM2MRegistry.html) and I have seen that 5527 object is a String of text. This would be perfect for me.

I tried to create in the Leshan demo server but it does not appear on the web. If I create a temperature object I see there. Is it because it is not an OMA object? Is is possible to include new objects on the demo server?

I tried creating it with the demo client and the response is: Unable to enable Object 5527 : there no model for this object.

How can I include a new model?

@pmartinez-tst pmartinez-tst added the question Any question about leshan label Apr 12, 2024
@sbernard31
Copy link
Contributor

I guess your are talking about reusable resource 5527.

ResourceID Name/Technical Spec Operation Type Range/Enumeration Units Submitter Description
5527 Text RW String IPSO A string of text.

For now there is no support of reusable resource : #329

We are not sure this is really useful as in real use case, you need the whole model anyway. See https://github.com/eclipse-leshan/leshan/wiki/Adding-new-objects

I tried to create in the Leshan demo server but it does not appear on the web. If I create a temperature object I see there. Is it because it is not an OMA object?
I tried creating it with the demo client and the response is: Unable to enable Object 5527 : there no model for this object.

I'm confused now because it seems you talk about an object with the ID 5527 but I thought that you talk about a reusable resource 😕

I let you read links I shared and maybe if you still don't get your answer you could try to reformulate ?

Is is possible to include new objects on the demo server?
How can I include a new model?

See :

@pmartinez-tst
Copy link
Author

Thank you @sbernard31
I will read your links carefully and I will ask again in case I need. If I have everything clear, I will close this question.

What I need is the possibility to include 5527 object support in the server so I can use it with my client device.
Or, in case I create a new object with the values I want, how can I include its support on the demo server?

@pmartinez-tst
Copy link
Author

I close the issue. I found what I needed on the webpages provided. Thank you!

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

No branches or pull requests

2 participants