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

Add ability to change advertising rate #39

Open
johnnyman727 opened this issue Nov 22, 2014 · 0 comments
Open

Add ability to change advertising rate #39

johnnyman727 opened this issue Nov 22, 2014 · 0 comments

Comments

@johnnyman727
Copy link
Contributor

It would be nice to be able to set the advertising rate of a BLE module acting as a beacon.

To do that, we need to add a function to messenger.js which outlines the raw packet that is being sent over UART to the module. It will use the bglib.gapSetAdvParameters function. The function expects a 16 bit number describing the min interval, a 16 bit number specifying the max interval, and a bit mask to specify which advertisement channels are used. The interval argument can be between 0x20 and 0x400. The advertisement channel should probably be 0x07 to continue using all three channels.

Then, this messenger API function should be surfaced to the BluetoothController object in index.js.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant