-
Notifications
You must be signed in to change notification settings - Fork 408
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
Read, Write, Execute method of Security object in leshan-client-demo was not called after a bootstrap #522
Comments
write is not being called since i add log in the method. Can you check on your side ? Also, there seems to be a bug. Both write cases below tried to set secret key ...
|
@chuchiliusandc, good catch about the variable issue. And you're right too about this method was never called after a bootstrap. That was because a SimpleInstanceEnabler was created instead of Security object. Explanation: For the last method this set the initial instances and create a factory which use the default/empty constructor of the class of the instance or a dummy factory which will create dummy SimpleInstanceEnabler. At bootstrap time, initial instance of Security and Server was deleted, then new instance was created. As Server/Security does not have default empty constructor, a SimpleInstanceEnabler was used. (you could check this by adding logs in this class) I fixed those 2 issue in #523. You could check if this behave better now. |
Got it. Thanks @sbernard31 :) |
Hi,
I am confused here.
I populated the certificate in leshan-server-bs and respond according to bootstrap request ...
However, the leshan-client-sim's Security object constructor, read, write methods are not triggered.
Does leshan-client-sim really save the certificate ?
Thanks :)
The text was updated successfully, but these errors were encountered: