Represents parameters that are set on a per-connection basis. More...
#include <connection2.h>
Public Attributes | |
bool | bondable_mode = true |
std::optional< Uuid > | service_filter |
std::optional< RequestedConnectionParameters > | parameters |
std::optional< uint16_t > | att_mtu |
Represents parameters that are set on a per-connection basis.
std::optional<uint16_t> pw::bluetooth::low_energy::Connection2::ConnectionOptions::att_mtu |
When present, specifies the ATT MTU to request. The actual MTU used may be smaller depending on peer and controller support. If none is specified, the host implementation will select the ATT MTU. Note that an MTU of 247 is the largest that can fit into a single LE data packet with the Data Length Extension.
bool pw::bluetooth::low_energy::Connection2::ConnectionOptions::bondable_mode = true |
When true, the connection operates in bondable mode. This means pairing will form a bond, or persist across disconnections, if the peer is also in bondable mode. When false, the connection operates in non-bondable mode, which means the local device only allows pairing that does not form a bond.
std::optional<RequestedConnectionParameters> pw::bluetooth::low_energy::Connection2::ConnectionOptions::parameters |
When present, specifies the initial connection parameters. Otherwise, the connection parameters will be selected by the implementation.
std::optional<Uuid> pw::bluetooth::low_energy::Connection2::ConnectionOptions::service_filter |
When present, service discovery performed following the connection is restricted to primary services that match this field. Otherwise, by default all available services are discovered.