Pigweed
 
Loading...
Searching...
No Matches
pw::bluetooth::low_energy::Connection2::ConnectionOptions Struct Reference

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< RequestedConnectionParametersparameters
 
std::optional< uint16_t > att_mtu
 

Detailed Description

Represents parameters that are set on a per-connection basis.

Member Data Documentation

◆ att_mtu

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.

  • LE ATT MTU Range: 23 to 517
  • LE EATT MTU Range: 64 to 517

◆ bondable_mode

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.

◆ parameters

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.

◆ service_filter

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.


The documentation for this struct was generated from the following file: