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

net: lwm2m: Add support for blockwise GET and FETCH #61858

Merged
merged 8 commits into from
Sep 27, 2023

Commits on Sep 21, 2023

  1. net: lwm2m: Allow content formats to support only some data types

    Partial content format support is required to have a proper support
    for content format OPAQUE instead of threading it as a part of
    plain text format.
    
    Signed-off-by: Seppo Takalo <[email protected]>
    SeppoTakalo committed Sep 21, 2023
    Configuration menu
    Copy the full SHA
    ab97ae8 View commit details
    Browse the repository at this point in the history
  2. net: lwm2m: Separate opaque content format into its own

    Opaque content format is not part of clear-text, so it
    should be separated into its own file.
    
    Signed-off-by: Seppo Takalo <[email protected]>
    SeppoTakalo committed Sep 21, 2023
    Configuration menu
    Copy the full SHA
    ad5d752 View commit details
    Browse the repository at this point in the history
  3. net: lwm2m: Only parse block1 option for WRITE operation

    In reality, single-write is the only operation that handles
    BLOCK1 operations when receiving paylod.
    
    Signed-off-by: Seppo Takalo <[email protected]>
    SeppoTakalo committed Sep 21, 2023
    Configuration menu
    Copy the full SHA
    2f94e5b View commit details
    Browse the repository at this point in the history
  4. net: lwm2m: Remove unneeded function pointer parameter

    lwm2m_udp_receive() is only called with same function
    pointer, so there no need to carry that in the parameter.
    
    Signed-off-by: Seppo Takalo <[email protected]>
    SeppoTakalo committed Sep 21, 2023
    Configuration menu
    Copy the full SHA
    c6de7d6 View commit details
    Browse the repository at this point in the history
  5. net: lwm2m: Refactor blockwise SEND to support GET and FETCH

    Allow blockwise-send buffers to be used with GET and FETCH
    queries as well.
    When outgoing packet is split into multiple blocks, don't free
    it when first block is send. Keep it in memory until some other requests
    come.
    
    Following queries to next block are matched using CoAP token.
    However, this required Leshan to use COAP.BLOCKWISE_REUSE_TOKEN=true
    option from Californium.
    
    Signed-off-by: Seppo Takalo <[email protected]>
    SeppoTakalo committed Sep 21, 2023
    Configuration menu
    Copy the full SHA
    994470f View commit details
    Browse the repository at this point in the history
  6. net: lwm2m: Fix composite read on SenML-CBOR

    Composite read was incorrectly trying to parse CoAP packet
    instead of payload of the packet.
    
    Signed-off-by: Seppo Takalo <[email protected]>
    SeppoTakalo committed Sep 21, 2023
    Configuration menu
    Copy the full SHA
    847d85f View commit details
    Browse the repository at this point in the history
  7. net: lwm2m: Append CoAP Etag to protect integrity of blockwise

    To protect the integrity of outgoing block-wise transfers, append
    Etag option that allows client to see if the received block is
    generated from same content as it is expecting.
    
    Signed-off-by: Seppo Takalo <[email protected]>
    SeppoTakalo committed Sep 21, 2023
    Configuration menu
    Copy the full SHA
    c496470 View commit details
    Browse the repository at this point in the history
  8. net: lwm2m: Generate new tokens for LwM2M SEND blocks

    Previously each piece of LwM2M SEND was
    using token length of zero. I think this was unintentional.
    
    Signed-off-by: Seppo Takalo <[email protected]>
    SeppoTakalo committed Sep 21, 2023
    Configuration menu
    Copy the full SHA
    42a30c5 View commit details
    Browse the repository at this point in the history