Ryan Powell

Results 653 comments of Ryan Powell
trafficstars

NimBLE cannot get the static mac address unless bonded with the phone to get the IRK.

The lines you'll want are: ``` NimBLEDevice::setSecurityIOCap(BLE_HS_IO_DISPLAY_ONLY); // use passkey NimBLEDevice::setSecurityAuth(false, true, true); ```

At -100 RSSI I would suspect a connection issue. Can you move closer to the device and try?

Unfortunately I don't have any idea as to what could be the issue here. I'll leave this open and hopefully someone can provide an answer.

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

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

You would need to call `NimBLEDevice::startSecurity` from the `onConnect` callback to do this.

Sorry I didn't reply sooner. The issue is the constructor for `NimBLEHIDDevice` takes a pointer to a `NimBLEServer` instance. You'll need to assign the hid pointer after you have initialized...

I have started working on a solution for this. It adds an instance number parameter to select from multiple attributes with the same UUID. The branch is here https://github.com/h2zero/NimBLE-Arduino/tree/remote-attr-index if...

@mkohns Were you able to test this? Does it work for you?