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

Added support for Extended Advertisements for Android #406

Merged
merged 2 commits into from
Dec 21, 2024

Conversation

Jakouf
Copy link
Contributor

@Jakouf Jakouf commented Nov 12, 2024

This PR adds support for Extended Advertisements from Bluetooth 5.0 on Android.

When creating the ScanSettings object by default only Legacy Advertisements are reported to the ScanCallback. From API Level 26 (Oreo) the developer has the option to also include Extended Advertisements to the reported ScanResults.

Furthermore it is fixing a build issue in the Peripheral.java file where the wrong API call to BluetoothAdapter is getting called and I updated it here as well. If necessary I can also do this in a separate PR.

Wrong API on BluetoothAdapter is getting called. Changed it to the
according API call getDefaultAdapter()
@qwandor qwandor changed the base branch from master to dev November 12, 2024 14:20
@qdot qdot merged commit f7bd8d2 into deviceplug:dev Dec 21, 2024
5 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.

2 participants