Skip to content
Commit f5e7753b authored by Piotr Dymacz's avatar Piotr Dymacz Committed by Dominik Ermel
Browse files

boot_serial: support fragmentation for outgoing SMP packets



The mcumgr packet sent over serial should be fragmented into frames of
up to 127 bytes, including 2-bytes frame start header and 1-byte for
terminating newline [1], resulting in up to 124 bytes for the base64
encoded payload.

Current implementation doesn't fulfill above requirement and transmits
single frames, without considering their length. This change introduces
support for fragmenting as defined in 'SMP over console' specification.

[1] github.com/apache/mynewt-mcumgr/blob/master/transport/smp-console.md

Signed-off-by: default avatarPiotr Dymacz <pepe2k@gmail.com>
parent 569b1d63
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment