-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Description
I was thinking of creating different security profiles based on some feature (for example) but the BLEDevice does not accept BLESecurity when taking it.
It is possible to do something like this?:
...
#[cfg(feature = "low_security")]
let ble_security = BLESecurity::builder()
.security()
.set_auth(true, true, true)
.set_passkey(123456)
.set_io_cap(SecurityIOCap::DisplayOnly);
#[cfg(feature = "high_security")]
let ble_security = BLESecurity::builder()
.security()
.set_auth(true, true, true)
.set_passkey(952384)
.set_io_cap(SecurityIOCap::DisplayOnly);
let ble_device = BLEDevice::take_with_security_conf(ble_security);
...
Metadata
Metadata
Assignees
Labels
No labels