Skip to content

Commit

Permalink
Merge pull request #120 from HaoboGu/main
Browse files Browse the repository at this point in the history
Add resolve_rpa to keyboard example
  • Loading branch information
taks authored Apr 4, 2024
2 parents 9124637 + a0f2d82 commit e6e0ad4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/ble_keyboard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,8 @@ impl Keyboard {
device
.security()
.set_auth(AuthReq::all())
.set_io_cap(SecurityIOCap::NoInputNoOutput);
.set_io_cap(SecurityIOCap::NoInputNoOutput)
.resolve_rpa();

let server = device.get_server();
let mut hid = BLEHIDDevice::new(server);
Expand Down

0 comments on commit e6e0ad4

Please sign in to comment.