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

Compile server&client example with DTLS #775

Open
pmartinez-tst opened this issue May 9, 2024 · 1 comment
Open

Compile server&client example with DTLS #775

pmartinez-tst opened this issue May 9, 2024 · 1 comment

Comments

@pmartinez-tst
Copy link

Hi,

I want to try the server and client with DTLS support. I have seen in the source code that I need to compile with WITH_TINYDTLS define but I haven't seen a place where that define is commented or where I have to write it.

Besides that, in case of enabling, how can I include the PSK ID and the PSK content for each client? Is there a new command in the server and another one in the client?

@LukasWoodtli
Copy link
Contributor

There is a target lwm2mclient_tinydtls that builds a client with DTLS support.
For the server side, there is no ready to use example.

Have a look at examples/client/CMakeLists.txt and related code, for inspiration to implement something similar for the server.

I don't know about any command regarding PSK ID (and related data). But I had no exposure to that code so far.

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

2 participants