Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 148ecbef authored by Christopher Friedt's avatar Christopher Friedt
Browse files

conrtrollers: tcpip + uart: wrappers for read and write


Previously, the actual number of bytes written did not match
what was expected in some cases, in practice. This change
adds a "write all" wrapper around write. Similarly, read did
not always return the full greybus message due to buffering.

In particular, this was the case for devices connected via
6LowPAN which has a very small MTU on IEEE 802.15.4 .

Similarly, a "read one message" wrapper was added
around read that first checks the length of the incoming
greybus message via its header and only reads precisely the
correct number of bytes.

Signed-off-by: default avatarChristopher Friedt <chrisfriedt@gmail.com>
parent 72c65d28
1 merge request!3This fixes many issues
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment