Links not refreshed in RegistrationEngine.update
See original GitHub issueWhen the Leshan client performs an update, it doesn’t refresh the available links. This results in deleted links being reported to the server, which seems incorrect.
RegistrationEngine.java, row 245
// Send update LOG.info("Trying to update registration to {} ...", dmInfo.getFullUri()); UpdateResponse response = sender.send(dmInfo.getAddress(), dmInfo.isSecure(), new UpdateRequest(registrationID, null, null, null, null), null);
As far as I can see it should rather be
// Send update LOG.info("Trying to update registration to {} ...", dmInfo.getFullUri()); UpdateResponse response = sender.send(dmInfo.getAddress(), dmInfo.isSecure(), new UpdateRequest(registrationID, null, null, null, LinkFormatHelper.getClientDescription(objectEnablers.values(), null)), null);
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (4 by maintainers)
Top GitHub Comments
@bolddp, I created new PRs (#787, #788) abou that
At the moment, I’m not involved in the LwM2m project that I was before, but it’s nice to see that Leshan still is alive and kickin’! I’m currently working on a project with a proprietary byte protocol.