-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: lwm2m: Rework bootstrap DELETE operation
Rework the bootstrap DELETE operation, to support deletion of multiple resources. Current implementation had several oversimplifications, making it not spec-compliant: * DELETE `/` removed only Security object instances (!= 0) * DELETE `/x` was handled as DELETE `/x/0`, therefore not removing all of the object instances. Since the above is only supported during bootstrap and not regular Device management, this functionality was implemented in the `bootstrap_delete` function, which now will be called for all DELETE operations initiated during bootstrap. The regular LwM2M DELETE handler will only be called during regular Device management, as it has more strict limitations on what can be deleted. Additionally, handle empty URI Path option as `/`, therefore indicating deletion of all resources. Fixes #29964 Signed-off-by: Robert Lubos <[email protected]>
- Loading branch information
Showing
1 changed file
with
97 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters