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 add new resource in Leshan Bootstrap or LwM2M Server? #560

Closed
Venki7113 opened this issue Aug 25, 2018 · 5 comments
Closed

How to add new resource in Leshan Bootstrap or LwM2M Server? #560

Venki7113 opened this issue Aug 25, 2018 · 5 comments
Labels
question Any question about leshan

Comments

@Venki7113
Copy link

Hi All,

How to add new custom resource in /0 and /1 in Leshan Bootstrap or LwM2M Server.

@sbernard31
Copy link
Contributor

Are you talking about leshan bsserver demo (with web UI) or are you asking how to do this programmatically ?

@sbernard31 sbernard31 added the question Any question about leshan label Sep 3, 2018
@Venki7113
Copy link
Author

To avoid repeated bootstrap, i want to introduce one flag(instance) in bootstrap server like "Bootstrapped",
if this flag is "1"( Yes), client should directly register to DM server, suppose server goes offline, client tries to max retry un-successes, then Bootstrapped flag should become 0 (No). For this in need to introduce one instance. How do we do that Leshan Server demo code? which file in need to modify?

@sbernard31
Copy link
Contributor

I think what you are talking about is more or less what is described in LWM2M 1.1 §6-2-1-1
New optional resources has been created to allow to set client bootstrap/retry behavior.
(by the way if you are interested by LWM2M 1.1 let us know : #563)

Currently, I can see no way to customize Bootstrap Server in that way without forking Leshan code :/, because currently the kind of config we can write is really static/rigide (see BoostrapConfig)

I suppose the first step to go in a more flexible way would be to implement this #437.
We probably need to have a better support of object version at server side too #535.

@sbernard31
Copy link
Contributor

ping ?

@sbernard31
Copy link
Contributor

I close it because of inactivity (Feel free to reopen it, if needed)

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