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

Using Californium CID for improved connection for clients #1661

Open
mattemyoo opened this issue Oct 22, 2024 · 4 comments
Open

Using Californium CID for improved connection for clients #1661

mattemyoo opened this issue Oct 22, 2024 · 4 comments
Labels
question Any question about leshan

Comments

@mattemyoo
Copy link

Question

We are using the LTE-M network, and we would like to improve the connection for our devices with our Leshan server.

We are using the nordic semi SDK, and we were suggested to make changes in our Leshan server to support CID.

Here is a previous issue that was closed a while ago:

#1166

And here is a thread that explains our challenges:

https://devzone.nordicsemi.com/f/nordic-q-a/114133/help-with-lte-connection-after-loss-of-connection/507418

@mattemyoo mattemyoo added the question Any question about leshan label Oct 22, 2024
@sbernard31
Copy link
Contributor

which version of leshan are you using ?

@mattemyoo
Copy link
Author

Hello @sbernard31

We are using our own leshan server, which we started by cloning leshan-2.0.0-M4.

@sbernard31
Copy link
Contributor

About 2.0.0-M4

You should not use v2.0.0-M4 as it is concerned by security issues : https://github.com/eclipse-leshan/leshan/security/policy
You should use M13 minimum.
I even recommend you to try to follow the last 2.0.0-Mx version.

About cloning

Leshan is a library to create your own LWM2M server.
Leshan Server Demo is not a product but just a demo to test the library.

This is very very surprising that need to clone it... to be honest that smell not good at all.. 😬

You should just create your own project and add Leshan libraries as dependency.
If there is something missing or issue with Leshan API just discuss with us and we try to find a solution.
We try to help users as long as it keeps in the project scope 🙂

So I insist on those 2 point ☝️, please try to change the way you are using Leshan.

About CID

CID is supported by Leshan Server Demo
So you could have a look at the demo code to see how to enable it :
https://github.com/eclipse-leshan/leshan/blob/leshan-2.0.0-M4/leshan-server-demo/src/main/java/org/eclipse/leshan/server/demo/LeshanServerDemo.java#L449-L451

Note that with recent version of Leshan, the way to configure the Californium DTLS configuration has change a little but just look at the code of the corresponding leshan-server-demo version

@sbernard31
Copy link
Contributor

Let me know if you get all information needed and if I can close the issue. 🙏

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