NimBLE-Arduino icon indicating copy to clipboard operation
NimBLE-Arduino copied to clipboard

BLE whitelist filtering not completely working or gives error

Open I-Connect opened this issue 2 years ago • 3 comments
trafficstars

Hi,

As there is a lot of BT traffic I wanted to use the whitelist, so I add all my devices (a Nuki smart lock and some different enocean switches and sensors) to the whitelist

If I use setFilterPolicy(1) it works partially, I do not get an error but I only get the advertisements from the Nuki Smart lock but no advertisements from Enocean devices.

If I use setFilterPolicy(3) I get the following error: E NimBLEScan: Error initiating GAP discovery procedure; rc=530, Invalid HCI Command Parameters

(if I use setFilterPolicy(0) I get them all (and then some...) zo the sensors work)

Any ideas?

I-Connect avatar May 05 '23 15:05 I-Connect

I suspect the missing devices may be changing their address in which case the whitelist not work once the address changes.

h2zero avatar May 14 '23 18:05 h2zero

I understand but would thsi be the cause of this error?

E NimBLEScan: Error initiating GAP discovery procedure; rc=530, Invalid HCI Command Parameters

I-Connect avatar May 15 '23 06:05 I-Connect

That I believe is caused by the controller. It's possible that the esp32 does not support that scan mode (3).

h2zero avatar May 15 '23 13:05 h2zero