Java LwM2M IoT3 bootstrap example#478
Merged
mathieu1fb merged 8 commits intoOrange-OpenSource:masterfrom Dec 2, 2025
Merged
Conversation
… classes For IoT3Identity: - Lwm2mIoT3Identity extending Lwm2mInstance to interact with the LwM2M server - IoT3Identity to securely store the received object For IoT3ServiceEndpoint: - Lwm2mIoT3ServiceEndpoint extending Lwm2mInstance to interact with the LwM2M server - IoT3ServiceEndpoint to securely store the received object Signed-off-by: Mathieu LEFEBVRE <mathieu1.lefebvre@orange.com>
Leshan needs to know beforehand about our custom objects to be able to handle them. Signed-off-by: Mathieu LEFEBVRE <mathieu1.lefebvre@orange.com>
…ation, update and deregistration events Signed-off-by: Mathieu LEFEBVRE <mathieu1.lefebvre@orange.com>
Signed-off-by: Mathieu LEFEBVRE <mathieu1.lefebvre@orange.com>
…int write operations during the bootstrap sequence, as these objects are read-only otherwise Signed-off-by: Mathieu LEFEBVRE <mathieu1.lefebvre@orange.com>
Signed-off-by: Mathieu LEFEBVRE <mathieu1.lefebvre@orange.com>
Signed-off-by: Mathieu LEFEBVRE <mathieu1.lefebvre@orange.com>
… on client side for now Ideally, they should be created automatically on the fly according to the number of endpoints defined server-side, but I haven't found how to achieve this yet... Signed-off-by: Mathieu LEFEBVRE <mathieu1.lefebvre@orange.com>
f579401 to
40b61a9
Compare
fredOG-2A1
reviewed
Dec 2, 2025
Member
fredOG-2A1
left a comment
There was a problem hiding this comment.
Ok with the last modification.
Member
|
Running the code leads to expected results: IoT3ServiceEndpoint: IoT3ServiceEndpoint: IoT3ServiceEndpoint: IoT3ServiceEndpoint: LwM2M registration success! |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What's new
New classes have been added to handle IoT3 bootstrapping with Live Objects using LwM2M:
IoT3IdentityandLwm2mIoT3Identity(LwM2M instance for server interactions)IoT3ServiceEndpointandLwm2mIoT3ServiceEndpoint(LwM2M instance for server interactions)Lwm2mCallbackto be notified of LwM2M events (bootstrap, registration, etc.)The
Lwm2mClienthas been updated to handle the new callback and IoT3-specific object models.A new
Lwm2mExampleclass has been added to demonstrate the LwM2M IoT3 bootstrap sequence.Close #276
What to do
After reviewing code changes:
Lwm2mExampleclass in theexamplesmodule, and set appropriate values for the following objects:Expected results
LwM2M bootstrap success!in the console, followed by:LwM2M registration success!.