Follow-up "Split the receiving part into two functions, one for the header and one for the body"
The following discussion from !62 (merged) should be addressed:
-
@pzejdl started a discussion: (+1 comment) It is getting quite involved in the while loop. I would propose splitting the body into two new functions something as (change the name as you prefer):
- readScoutingHeader
- readScoutingPayload
Like that it would be immediately obvious what is going on.