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

Lwm2m boostrap fixes #1271

Merged
merged 3 commits into from
Aug 11, 2023
Merged

Lwm2m boostrap fixes #1271

merged 3 commits into from
Aug 11, 2023

Commits on Aug 10, 2023

  1. [nrf fromlist] net: lwm2m: Wake up engine on pause/resume

    Engine wake-up call was missing from pause/resume APIs
    which caused delay.
    
    Upstream PR: zephyrproject-rtos/zephyr#61370
    
    Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
    (cherry picked from commit cb46ff519aa7e99f96955b1150a8d3fd54925a75)
    SeppoTakalo committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    37552f1 View commit details
    Browse the repository at this point in the history
  2. [nrf fromlist] net: lwm2m: All state changes should go through set_sm…

    …_state()
    
    Some state changes were do by directly writing into
    client.engine_state variable, followed by call next_event_at(0);
    This causes hard-to-find side effects.
    
    Refactor all state transitions to use set_sm_state() to have better
    control for it.
    
    Upstream PR: zephyrproject-rtos/zephyr#61370
    
    Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
    (cherry picked from commit b55a3b9ca9de116e87a71b1ace05e3ded9dae055)
    SeppoTakalo committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    ea3b718 View commit details
    Browse the repository at this point in the history
  3. [nrf fromlist] net: lwm2m: Do not immediately close connection at Boo…

    …tstrap
    
    When BOOTSTRAP FINNISH message was received, it caused
    engine to immediately switch to BOOTSTRAP_TRANS_DONE state
    which then closed the connection.
    Ack packet was still on the send-queue so it never got send before close().
    
    Upstream PR: zephyrproject-rtos/zephyr#61370
    
    Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
    (cherry picked from commit 42c0a915d0b6565159ed91dc687b72afe62ad2bb)
    SeppoTakalo committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    988a149 View commit details
    Browse the repository at this point in the history