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

Fetch LwM2M related updates from upstream #1264

Merged
merged 10 commits into from
Aug 3, 2023

Commits on Aug 3, 2023

  1. [nrf fromtree] net: lib: lwm2m: Use int16_t for signal strength

    The signal strength for the connectivity monitor was
    defined as int8_t, however this was too small for
    LTE RSRP values, which has range [-140,-44].
    
    Signed-off-by: Jarno Lämsä <jarno.lamsa@nordicsemi.no>
    (cherry picked from commit 7ae4e24)
    Jarno Lämsä authored and SeppoTakalo committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    f0263e7 View commit details
    Browse the repository at this point in the history
  2. [nrf fromtree] net: lwm2m: Update next event timestamp on PMAX change

    When PMAX value is changed, it should update all events.
    I believe there is a bug that caused the code only to update
    events that are ongoing (to be send).
    
    Now if PMAX changes, next event timestamp is recalculated.
    
    Fixes #59397
    
    Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
    (cherry picked from commit aaa9ced)
    SeppoTakalo committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    086d271 View commit details
    Browse the repository at this point in the history
  3. [nrf fromtree] net: lwm2m: Create socketpair that can wake up zsock_p…

    …oll()
    
    Allow socket-loop to wake up immediately, if there are changes,
    instead of waiting for zsock_poll() to timeout.
    This change makes engine more reactive and removes
    hard coded timeout from zsock_poll().
    
    Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
    (cherry picked from commit 1dfa711)
    SeppoTakalo committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    8b5e1d7 View commit details
    Browse the repository at this point in the history
  4. [nrf fromtree] net: lwm2m: Add support for non-periodic services

    Engine now allows registering service callbacks that are
    called only once on a given timestamp.
    This allows tickless services to be developed.
    
    Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
    (cherry picked from commit 2da8844)
    SeppoTakalo committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    eb93b2a View commit details
    Browse the repository at this point in the history
  5. [nrf fromtree] net: lwm2m: Refactor RD client to be tickless

    Call RD client service only when there is state transitioning.
    Remove periodic 500 ms timer.
    
    Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
    (cherry picked from commit 518bbc1)
    SeppoTakalo committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    adbd68e View commit details
    Browse the repository at this point in the history
  6. [nrf fromtree] net: coap: Use 64bit timestamps

    Use 64bit timestamps from k_uptime_get() so they don't
    roll over during the expected device lifetime.
    
    Fixes #60826
    
    Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
    (cherry picked from commit 838ab80)
    SeppoTakalo committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    58ce7ef View commit details
    Browse the repository at this point in the history
  7. [nrf fromtree] tests: lwm2m: Fix too small test buffer

    ZTEST(lwm2m_registry, test_strings) is using opaque resource
    0/0/3 to write a test string "coap://127.0.0.1" which
    happens to be same length as default key size.
    Need more room to add end marker and verify it.
    
    Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
    (cherry picked from commit 14573fc)
    SeppoTakalo committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    0133aeb View commit details
    Browse the repository at this point in the history
  8. [nrf fromtree] test: net: lwm2m: Fix build warning about unitialized

    Few variables were uninitialized on certain cases.
    
    Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
    (cherry picked from commit 0f6ded7)
    SeppoTakalo committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    4228229 View commit details
    Browse the repository at this point in the history
  9. [nrf fromtree] tests: net: lwm2m: Remove timing sensitive assert

    As the lwm2m_reset_message() is stubbed, it does not remove
    a message from rettry queue. Therefore depending on the
    simulation speed, retries can happen one or many times.
    
    Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
    (cherry picked from commit e92f8ac)
    SeppoTakalo committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    fdd2319 View commit details
    Browse the repository at this point in the history
  10. [nrf fromtree] tests: net: lwm2m: Remove unnecessary filtering

    Content-format tests do not require network or
    Newlibc, so by removing these filters.
    Defined a native_posix as the only integration platform
    because all simulated arm-zephyr-eabi platforms are
    filtered out by Twister.
    
    Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
    (cherry picked from commit a7498c3)
    SeppoTakalo committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    e8ac991 View commit details
    Browse the repository at this point in the history