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

FIX #197 : Replace varclr with arrclr for BLEAdvertising _data fields #784

Merged
merged 1 commit into from
Jul 26, 2023
Merged

FIX #197 : Replace varclr with arrclr for BLEAdvertising _data fields #784

merged 1 commit into from
Jul 26, 2023

Conversation

CSC-Sendance
Copy link
Contributor

Otherwise the data field gets corrupted (?) causing error msg "bool BLEAdvertising::_start(uint16_t, uint16_t): 364: verify failed, error = NRF_ERROR_INVALID_LENGTH" as mentioned in this comment: #197 (comment)

This apparently does not cause any issue when advertising the first time but when calling BLEAdvertising#clearData(), e.g. for changing the advertised bluetooth device name "on the fly", then starting the new advertisement procedure will fail.

see also https://devzone.nordicsemi.com/f/nordic-q-a/52573/sd_ble_gap_adv_set_configure-returns-error-nrf_error_invalid_length

Otherwise the data field gets corrupted (?) causing error msg "bool BLEAdvertising::_start(uint16_t, uint16_t): 364: verify failed, error = NRF_ERROR_INVALID_LENGTH" as mentioned in this comment: #197 (comment)

see also https://devzone.nordicsemi.com/f/nordic-q-a/52573/sd_ble_gap_adv_set_configure-returns-error-nrf_error_invalid_length
Copy link
Member

@hathach hathach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spot on, thank you. Looking back, these varclr/arrclr is kind of confusing. I should have done better. Thank you for your PR

@hathach hathach merged commit bf50479 into adafruit:master Jul 26, 2023
7 checks passed
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.

None yet

2 participants