-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Nimble whitelist not working (IDFGH-13216) #14153
Comments
Hi @Steven35700 , Please try BLE_HCI_SCAN_FILT_USE_WL_INITA |
Using However, I just tried without using extended advertising I can get the whitelist work ! |
Hi @Steven35700 , Sorry for late reply . When the value BLE_HCI_SCAN_FILT_USE_WL_INITA is set, remote can still see the device. However, esp32 s3 will reject the incoming scan / connection request if the remote device is NOT in the whitelist. I tested s3 now for both extended adv and legacy and i see it works correctly. May i know what exactly is not working at your end ?. Please share console log and application code for reference. |
I'm having a possibly related issue where the remote device is able to connect, but the functionality of the peripheral is broken - e.g. the peripheral is a BLE HID input device and it sets the whitelist so that only a specific central can connect. The central does connect just fine, but does not properly discover the services and such. For the same device with the same bond, advertising without the whitelist address allows the central to connect and the HID device works just fine. |
I'm also slightly confused - you're talking about using the |
Answers checklist.
General issue report
Hi,
I started from the bleprph example, I activated the
CONFIG_EXAMPLE_EXTENDED_ADV
flag over menuconfig and I added a line to activate the filter on the whitelist:params.filter_policy = BLE_HCI_SCAN_FILT_USE_WL;
in theext_bleprph_advertise(void)
function.After building and flashing the example on an ESP32S3, when I scan Bluetooth devices over NRFConnect, I still see the advertising and I can connect and interact with the device even though my phone is not in the whitelist.
I thought the problem might come from an empty whitelist. So I added a random address to the whitelist, but the problem persists.
There is no example dealing with this whitelist use case and the nimble documentation is not very complete on this subject.
I absolutely don't feel like this is normal, am I making a mistake ?
The text was updated successfully, but these errors were encountered: