Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
coap: zephyr: 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. The Kconfig value was previously masked by a bitwise operation. This should not be necessary as that symbol was updated to a 'choice' in Kconfig so we can be confident that the value is valid coap size or it would have triggered a static assert. Signed-off-by: Mike Szczys <mike@golioth.io>
- Loading branch information