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

modifying the ACCESS_ADDRESS for BLE scan

Open 0x0fe opened this issue 10 months ago • 2 comments

Hello, is there a way to modify the ACCESS_ADDRESS for BLE scan? i want to receive the frames from my custom remote control which uses a BLE Phy but modify the standard ACCESS_ADDRESS (normally 0x8E89BED6).

0x0fe avatar Apr 10 '25 02:04 0x0fe

Please see the functions here: https://github.com/h2zero/NimBLE-Arduino/blob/62180ab2bc9c9a8b41f9fb800ea7256e89628a3a/src/NimBLEDevice.h#L131

h2zero avatar Apr 10 '25 15:04 h2zero

Oh, nice, i did not notice this, does this apply to the scan as well?

Edit: I think there is a misunderstanding, this function seems to set the MAC address, which is not what i need to do at all, the access address is a part of the raw frame, this is what i need to modify, so that the stack can see frames with an arbitrary access address, which is not the case right now.

Image

0x0fe avatar Apr 10 '25 20:04 0x0fe