ESPHome 2026.8.0b4
Loading...
Searching...
No Matches
esphome::ble_device_base::DiscoveredDeviceLog Class Reference

Per-scan-period "Found device" DEBUG logger, deduplicated by MAC address. More...

#include <ble_device.h>

Public Member Functions

void log_device (const char *tag, const ESPBTDevice &device)
 Log the device at DEBUG the first time its MAC is seen this scan period.
 
void clear ()
 Reset the per-period dedup list (call when a scan period ends).
 

Protected Attributes

std::vector< uint64_t > already_discovered_
 

Detailed Description

Per-scan-period "Found device" DEBUG logger, deduplicated by MAC address.

Shared by all tracker backends so the output format and dedup behaviour stay identical by construction (single implementation instead of per-chip copies).

Definition at line 269 of file ble_device.h.

Member Function Documentation

◆ clear()

void esphome::ble_device_base::DiscoveredDeviceLog::clear ( )
inline

Reset the per-period dedup list (call when a scan period ends).

Definition at line 274 of file ble_device.h.

◆ log_device()

void esphome::ble_device_base::DiscoveredDeviceLog::log_device ( const char * tag,
const ESPBTDevice & device )

Log the device at DEBUG the first time its MAC is seen this scan period.

Definition at line 573 of file ble_device.cpp.

Field Documentation

◆ already_discovered_

std::vector<uint64_t> esphome::ble_device_base::DiscoveredDeviceLog::already_discovered_
protected

Definition at line 277 of file ble_device.h.


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