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

3.0.0-RC1 DTLS configuration from file #1800

Closed
Strauteka opened this issue Oct 26, 2021 · 3 comments
Closed

3.0.0-RC1 DTLS configuration from file #1800

Strauteka opened this issue Oct 26, 2021 · 3 comments

Comments

@Strauteka
Copy link

How can I add DTLS.* configuration from *.properties file?
Currently I can set DTLS config from code, but not load from file.

this.configuration.set(DtlsConfig.DTLS_CONNECTION_ID_LENGTH, 5);
this.configuration.get(DtlsConfig.DTLS_CONNECTION_ID_LENGTH);

Using org.eclipse.californium.elements.configConfiguration.createFromStream(coapEndpointFile.getInputStream(), EndpointConfiguration.DEFAULTS);

Printing
[main] WARN o.e.c.elements.config.Configuration - Ignore DTLS.CONNECTION_ID_LENGTH, no configuration definition available!
From debug in method org.eclipse.californium.elements.configConfiguration.add(Properties properties)

Allowed definitions is only COAP.*
image

There is some other technique to load DTLS configuration or I am missing something?

@boaks
Copy link
Contributor

boaks commented Oct 26, 2021

I guess, you missed to read the javadoc.

Though one of the features of the new configuration was to support "modularization", it's required to provide the modules you want to use (ahead of loading the values from a stream).
Two way are supported to do so:

@Strauteka
Copy link
Author

Thank you! Got it!

@boaks
Copy link
Contributor

boaks commented Oct 26, 2021

You're welcome.

Just to mention: If you made some experience with the new Configuration (bad or good :-), feedback will be very welcome. See issues #1708 and #1709.

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