Skip to content

Set Bluefruit LE advertising interval #422

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

Merged
merged 1 commit into from
May 18, 2019

Conversation

cstawarz
Copy link
Contributor

By default, the BLE firmware on the Adafruit Feather M0 Bluefruit LE will switch from fast advertising (20ms interval) to low-power advertising (417.5ms interval) after 30 seconds. I found that, after the switch to low-power advertising, connection attempts from macOS devices often failed (despite the fact that such a switch is explicitly condoned in Apple's documentation).

These changes alter the default configuration of Bluefruit LE devices to always use the initial, 20ms advertising interval. They also introduce a new preprocessor macro, FIRMATA_BLE_ADVERTISING_INTERVAL, which can be set by other device configurations. Users who want to stick with the Feather M0's default advertising behavior can simply comment out the macro definition in bleConfig.h.

@soundanalogous
Copy link
Member

Thanks!

@soundanalogous soundanalogous merged commit 9868fbf into firmata:master May 18, 2019
@cstawarz cstawarz deleted the ble_advertising_interval branch May 20, 2019 13:30
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