ESPHome 2026.12.0-dev
Loading...
Searching...
No Matches
esphome::bluetooth_connection::RelaxedConnParams Class Reference

Addresses that failed at FAST twice in a row and now open with MEDIUM; the oldest is replaced when full. More...

#include <relaxed_conn_params.h>

Public Member Functions

bool use_relaxed (uint64_t address)
 
bool fast_failed (uint64_t address)
 A FAST attempt failed; returns true when it was the second in a row.
 
void fast_connected (uint64_t address)
 A FAST link came up: forgets a single earlier failure. Relaxed entries stay.
 
bool forget (uint64_t address)
 Returns true when an entry was removed.
 

Static Public Attributes

static constexpr uint8_t MAX_ADDRESSES = 4
 

Protected Member Functions

uint64_t * find_ (uint64_t address)
 
void erase_ (uint64_t *entry)
 

Protected Attributes

std::array< uint64_t, MAX_ADDRESSES > entries_ {}
 

Static Protected Attributes

static constexpr uint64_t RELAXED_FLAG = 1ULL << 63
 

Detailed Description

Addresses that failed at FAST twice in a row and now open with MEDIUM; the oldest is replaced when full.

Definition at line 9 of file relaxed_conn_params.h.

Member Function Documentation

◆ erase_()

void esphome::bluetooth_connection::RelaxedConnParams::erase_ ( uint64_t * entry)
inlineprotected

Definition at line 56 of file relaxed_conn_params.h.

◆ fast_connected()

void esphome::bluetooth_connection::RelaxedConnParams::fast_connected ( uint64_t address)
inline

A FAST link came up: forgets a single earlier failure. Relaxed entries stay.

Definition at line 32 of file relaxed_conn_params.h.

◆ fast_failed()

bool esphome::bluetooth_connection::RelaxedConnParams::fast_failed ( uint64_t address)
inline

A FAST attempt failed; returns true when it was the second in a row.

Definition at line 18 of file relaxed_conn_params.h.

◆ find_()

uint64_t * esphome::bluetooth_connection::RelaxedConnParams::find_ ( uint64_t address)
inlineprotected

Definition at line 48 of file relaxed_conn_params.h.

◆ forget()

bool esphome::bluetooth_connection::RelaxedConnParams::forget ( uint64_t address)
inline

Returns true when an entry was removed.

Definition at line 38 of file relaxed_conn_params.h.

◆ use_relaxed()

bool esphome::bluetooth_connection::RelaxedConnParams::use_relaxed ( uint64_t address)
inline

Definition at line 13 of file relaxed_conn_params.h.

Field Documentation

◆ entries_

std::array<uint64_t, MAX_ADDRESSES> esphome::bluetooth_connection::RelaxedConnParams::entries_ {}
protected

Definition at line 65 of file relaxed_conn_params.h.

◆ MAX_ADDRESSES

uint8_t esphome::bluetooth_connection::RelaxedConnParams::MAX_ADDRESSES = 4
staticconstexpr

Definition at line 11 of file relaxed_conn_params.h.

◆ RELAXED_FLAG

uint64_t esphome::bluetooth_connection::RelaxedConnParams::RELAXED_FLAG = 1ULL << 63
staticconstexprprotected

Definition at line 62 of file relaxed_conn_params.h.


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