-
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
Question about RegistrationStore#getRegistrationByAdress #464
Comments
Good question!
What happen exactly, when you send data via Currently, Leshan server search in RegistrationStore to find which registration is used for this address and so find PSK to use. Currently our default I think about 3 way to solve this issue without Californium modification :
I don't know what is the best solution 2. or 3. seems better to me. I hope my comment is almost understandable. |
Interesting, personally I would go with the 3rd point because that give the client (who uses the APi) to make the choice and we should not return too many results anyway. As you said 3 needs API modifications. Thanks. |
What do you mean by "that give the client (who uses the APi) to make the choice" ? |
I should have said |
Not exactly as LwM2mPskstore is not really indented to be implemented by "developer who uses the API". |
I provide a PR #517 to fix this issue. |
This is fixed in master since #517 in integrated. |
As I understand, the
Identity
object was added to theRegistration
in order to differentiate clients that are connecting by the same IP address and port.If this understanding is correct, shouldn't this method return a list instead of a single value?
Thanks.
The text was updated successfully, but these errors were encountered: