mirror of https://github.com/ARMmbed/mbed-os.git
added type conversion for connection params
parent
7fb863eeb4
commit
7b0cb27427
|
@ -611,6 +611,14 @@ struct peer_address_type_t :SafeEnum<peer_address_type_t, uint8_t> {
|
||||||
ANONYMOUS = 0xFF
|
ANONYMOUS = 0xFF
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ble::target_peer_address_type_t getTargetAddressType() const {
|
||||||
|
if (value() == RANDOM || value() == RANDOM_STATIC_IDENTITY) {
|
||||||
|
return ble::target_peer_address_type_t::RANDOM;
|
||||||
|
}
|
||||||
|
|
||||||
|
return ble::target_peer_address_type_t::PUBLIC;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Construct a new instance of peer_address_type_t.
|
* Construct a new instance of peer_address_type_t.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue