-
-
Notifications
You must be signed in to change notification settings - Fork 34
Support ble extended advertising on Windows #114
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
base: main
Are you sure you want to change the base?
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|
/gemini review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
The pull request adds support for Bluetooth Low Energy (BLE) extended advertisements on Windows. The changes are minimal, focusing on enabling the AllowExtendedAdvertisements feature. Overall, the change seems straightforward and beneficial.
Merge Readiness
The pull request appears to be a small but important enhancement. Given the limited scope and the absence of any identified high or critical severity issues, the pull request seems to be in good shape for merging. However, it's advisable to have another reviewer double-check the correctness of the added line, especially concerning its potential impact on existing functionality. I am unable to approve this pull request, and recommend that others review and approve this code before merging.
| { | ||
| bluetoothLEWatcher = BluetoothLEAdvertisementWatcher(); | ||
| bluetoothLEWatcher.ScanningMode(BluetoothLEScanningMode::Active); | ||
| (void)bluetoothLEWatcher.AllowExtendedAdvertisements(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's good to see that the return value of AllowExtendedAdvertisements() is being ignored, as it might not always be necessary to handle it explicitly. However, consider adding a comment explaining why the return value is being ignored. This can help avoid confusion for future developers who might wonder if the return value should be checked for errors or other status information.
| (void)bluetoothLEWatcher.AllowExtendedAdvertisements(); | |
| (void)bluetoothLEWatcher.AllowExtendedAdvertisements(); // Ignoring return value as it doesn't provide useful information in this context. |
11cc164 to
78d0aae
Compare
PR Type
enhancement
Description
BluetoothLEAdvertisementWatcherto allow extended advertisements.Changes walkthrough 📝
universal_ble_plugin.cpp
Enable BLE extended advertisements on Windowswindows/src/universal_ble_plugin.cpp
advertisements.