Skip to content

Conversation

polldo
Copy link
Contributor

@polldo polldo commented Nov 3, 2020

If a BLEAdvertisingData packet has the raw data parameter set, all the other parameters are ignored when encoding the actual data packet.
This means that the raw data parameter can be as long as the maximum length for an advertising packet (MAX_AD_DATA_LENGTH), that is 31 bytes as per BLE standard.
During the setting of the raw data parameter: if the passed raw data length is larger than this maximum value, then the raw data is not set and the function returns false.

If a BLEAdvertisingData packet has the raw data parameter set, all the other parameters are ignored when encoding the actual data packet.
This means that the raw data parameter can be as long as the maximum length for an advertising packet (MAX_AD_DATA_LENGTH), that is 31 bytes as per BLE standard.
During the setting of the raw data parameter: if the passed raw data length is larger than this maximum value, then the raw data is not set and the function returns false.
@facchinm facchinm merged commit a7d52df into arduino-libraries:master Nov 11, 2020
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 this pull request may close these issues.

2 participants