-
Notifications
You must be signed in to change notification settings - Fork 8.2k
LwM2M 1.10 changes: firmware support + bugfixes + more (2nd version) #4380
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
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
eef49c9
net: lib: lwm2m: use stand-alone URL parser
b8bf3e3
net: lwm2m: add state machine for firmware pull update
rbtchc 9fe002c
net: lwm2m: setup data_ptr/len for OPAQUE resource when none given
rbtchc dbba0b6
net: lwm2m: add firmware push support
rbtchc 69561ee
net: lwm2m: fix compile w/o CONFIG_LWM2M_FIRMWARE_UPDATE_PULL_SUPPORT
5350f4b
net: lwm2m: RD client start message should be INFO not DEBUG
d40cb3b
net: lwm2m: change registraion update messages to INFO
e8a6612
net: lwm2m: fix message release for separate reply
8ff1340
net: lwm2m: split out lwm2m context initialization
6b760ff
net: lwm2m: setup lwm2m ctx for firmware download
7b92baa
net: lwm2m: fix packet leak in timeout work
61e6625
net: lwm2m: add full block-wise retries for firmware download
e7d90f4
net: lwm2m: ignore duplicate/older block transfers
c7eb9d2
net: lwm2m: firmware: add support for firmware pull over CoAP proxy
rsalveti 0a21766
net: lwm2m: add RD client callbacks for app
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -122,9 +122,15 @@ int lwm2m_device_add_err(u8_t error_code); | |
| #define RESULT_UPDATE_FAILED 8 | ||
| #define RESULT_UNSUP_PROTO 9 | ||
|
||
|
|
||
| #if defined(CONFIG_LWM2M_FIRMWARE_UPDATE_OBJ_SUPPORT) | ||
| void lwm2m_firmware_set_write_cb(lwm2m_engine_set_data_cb_t cb); | ||
| lwm2m_engine_set_data_cb_t lwm2m_firmware_get_write_cb(void); | ||
|
|
||
| #if defined(CONFIG_LWM2M_FIRMWARE_UPDATE_PULL_SUPPORT) | ||
| void lwm2m_firmware_set_update_cb(lwm2m_engine_exec_cb_t cb); | ||
| lwm2m_engine_exec_cb_t lwm2m_firmware_get_update_cb(void); | ||
| #endif | ||
| #endif | ||
|
|
||
| /* LWM2M Engine */ | ||
|
|
||
|
|
@@ -192,8 +198,26 @@ int lwm2m_engine_start(struct lwm2m_ctx *client_ctx, | |
|
|
||
| /* LWM2M RD Client */ | ||
|
|
||
| /* Client events */ | ||
| enum lwm2m_rd_client_event { | ||
| LWM2M_RD_CLIENT_EVENT_NONE, | ||
| LWM2M_RD_CLIENT_EVENT_BOOTSTRAP_FAILURE, | ||
| LWM2M_RD_CLIENT_EVENT_BOOTSTRAP_COMPLETE, | ||
| LWM2M_RD_CLIENT_EVENT_REGISTRATION_FAILURE, | ||
| LWM2M_RD_CLIENT_EVENT_REGISTRATION_COMPLETE, | ||
| LWM2M_RD_CLIENT_EVENT_REG_UPDATE_FAILURE, | ||
| LWM2M_RD_CLIENT_EVENT_REG_UPDATE_COMPLETE, | ||
| LWM2M_RD_CLIENT_EVENT_DEREGISTER_FAILURE, | ||
| LWM2M_RD_CLIENT_EVENT_DISCONNECT | ||
| }; | ||
|
|
||
| /* Event callback */ | ||
| typedef void (*lwm2m_ctx_event_cb_t)(struct lwm2m_ctx *ctx, | ||
| enum lwm2m_rd_client_event event); | ||
|
|
||
| int lwm2m_rd_client_start(struct lwm2m_ctx *client_ctx, | ||
| char *peer_str, u16_t peer_port, | ||
| const char *ep_name); | ||
| const char *ep_name, | ||
| lwm2m_ctx_event_cb_t event_cb); | ||
|
|
||
| #endif /* __LWM2M_H__ */ | ||
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typos in commit message
s/applicaiton/application/
s/trasnition/transition/