Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework BDX TransferSession to not encode PayloadHeader #8098

Closed
holbrookt opened this issue Jul 2, 2021 · 0 comments · Fixed by #8234
Closed

Rework BDX TransferSession to not encode PayloadHeader #8098

holbrookt opened this issue Jul 2, 2021 · 0 comments · Fixed by #8234
Assignees
Milestone

Comments

@holbrookt
Copy link
Contributor

Problem

Currently the bdx::TransferSession class outputs messages that already have a PayloadHeader attached at the beginning. However, this is incompatible with ExchangeContext::SendMessage(), which expects to receive a message without a PayloadHeader.

See:

CHIP_ERROR AttachHeader(chip::Protocols::Id protocolId, uint8_t msgType, ::chip::System::PacketBufferHandle & msgBuf)

PayloadHeader payloadHeader;

Proposed Solution

  • TransferSession should not attach a PayloadHeader to the message
  • TransferSession should have some way for the caller to get the MessageType of the message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant