Skip to content

[QUESTION] Codec/FramedTransport for header inside message buffer #331

@matth314

Description

@matth314

Hi,

I was implementing a uart driver for a low power MCU, and I had a hard time with the way the current FramedTransport work, aka sending the header first and the message buffer second. I simplified my efforts by putting the framed header inside the message buffer in the BasicCodec, for the FramedTransport to be able to send everything in one go.
Would that be something you'd be interested in ?

I created my own classes for my Codec and FramedTransport implementations, but I could also write that inside the BasicCodec and FramedTransport classes, either with #defines or with options selectable at runtime.

Regards

Steps you didn't forgot to do

  • I checked if there is no related issue opened/closed.
  • I checked that there doesn't exist opened/closed PR which is solving this issue.
  • I looked in documentation if there is related information.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions