Skip to content
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

[PR] Backport LwM2M changes and fixes #407

Closed
wants to merge 18 commits into from

Conversation

taubel
Copy link

@taubel taubel commented Nov 30, 2018

This pull request fixes issue #2
Due to merge conflict, commit 22a2434 has been reverted because it seems to address the same issue fixed by 8devices@31488c9
Commits have been hand-picked to only leave changes made to core files

taubel and others added 18 commits November 29, 2018 16:47
Other operations, like write-attributes, still need to be implemented
... also show it in REST /endpoints
LwM2M standard states that the server MUST reinitiate observations, but as a quick fix, just remove them.
LwM2M should call request transaction callback only when a response arrives and not an empty ACK.
Transactions have references to context that may be already dealloced
when the transaction completes (i.e. client is deregistered, but observation
transaction is pending and will time out).
Transactions to queue mode devices must wait for client update.
* lwm2m_observe_cancel instead of sending unobserve packet, now changes observation state
* lwm2m_observe_cancel calls callback immediately
* Number of pending transactions is tracked to prevent premature free
@taubel taubel closed this Nov 30, 2018
@taubel taubel deleted the 8dev_backport branch December 3, 2018 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants