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

libcoap: block-upload: allow server-negotiated block size #648

Merged
merged 2 commits into from
Oct 8, 2024

Commits on Oct 7, 2024

  1. coap: libcoap: update block upload size based on server response

    When the server responds to a block upload request with a different
    block size, supply the new value to the callback so it may be used to set
    up the size of the  next block.
    
    Signed-off-by: Mike Szczys <[email protected]>
    szczys committed Oct 7, 2024
    Configuration menu
    Copy the full SHA
    9e4e925 View commit details
    Browse the repository at this point in the history
  2. coap: libcoap: use negotiated block size when adding block1

    Use the negotiated block size when initializing the block1 option of the
    coap packet.
    
    This moves the use of the compiled-in
    CONFIG_GOLIOTH_BLOCKWISE_UPLOAD_MAX_BLOCK_SIZE value to the initialization
    step of the negotiated value, and allows for the negotiated value to be
    updated based on the server preference, then used for all subsequent coap
    requests in the block upload process.
    
    Signed-off-by: Mike Szczys <[email protected]>
    szczys committed Oct 7, 2024
    Configuration menu
    Copy the full SHA
    8d12cab View commit details
    Browse the repository at this point in the history