You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As mentioned in #1008, split messages are not sent efficiently at the moment. Instead the whole buffer is sent even if only part of it was used for the encoding.
This pull request changes the Characteristics type to variable length and enables efficient bandwidth usage.
It introduces GattSplitMessage, a wrapper around a [u8; SplitMessage::POSTCARD_MAX_SIZE] buffer.
It uses SplitMessage::POSTCARD_MAX_SIZE as the length, as SPLIT_MESSAGE_MAX_SIZE includes bytes needed for the COBS encoding for the serial link, which is not necessary for BLE.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As mentioned in #1008, split messages are not sent efficiently at the moment. Instead the whole buffer is sent even if only part of it was used for the encoding.
This pull request changes the Characteristics type to variable length and enables efficient bandwidth usage.
It introduces
GattSplitMessage, a wrapper around a[u8; SplitMessage::POSTCARD_MAX_SIZE]buffer.It uses
SplitMessage::POSTCARD_MAX_SIZEas the length, asSPLIT_MESSAGE_MAX_SIZEincludes bytes needed for the COBS encoding for the serial link, which is not necessary for BLE.