19#ifdef USE_OTA_STATE_LISTENER
30 public Parented<ln882h_ble::LN882HBLE>,
32#ifdef USE_OTA_STATE_LISTENER
39 void setup()
override;
44#ifdef USE_OTA_STATE_LISTENER
89 return {.active_scan =
true, .merges_scan_response =
true, .gatt =
false, .scan_mode_switch =
true};
94 uint8_t mac[MAC_ADDRESS_SIZE];
96 for (
int i = 0; i < 6; i++)
127#ifdef USE_OTA_STATE_LISTENER
Helper class to easily give an object a parent of type T.
ln882h_ble::LN882HBLE * parent_
The delivery half of a split-report tracker, shared so the dispatch contract (raw-callback ordering,...
void set_raw_advertisement_callback(RawAdvertisementCallback callback)
void register_listener(ESPBTDeviceListener *listener)
Consumer interface for controller scan reports.
void get_mac_lsb_first(uint8_t out[6]) const
Controller BLE address in the SDK's ln_bd_addr_t order: least-significant octet first (the BLE/HCI co...
float get_setup_priority() const override
void set_scan_duration(uint32_t scan_duration)
bool scan_continuous_before_ota_
bool request_scan_mode(bool active)
void dump_config() override
void end_scan_period_(uint32_t now)
void set_scan_window(uint16_t scan_window)
ble_device_base::AdvDispatcher dispatcher_
void set_raw_advertisement_callback(ble_device_base::RawAdvertisementCallback callback)
bool scan_continuous() const
void get_adapter_mac(uint8_t out[MAC_ADDRESS_SIZE])
void register_listener(ble_device_base::ESPBTDeviceListener *listener)
uint32_t scan_period_start_
void set_scan_continuous(bool scan_continuous)
Runtime control (esp32_ble_tracker lambda parity): does not change the configured value,...
ble_device_base::ScanResponseMerger merger_
void set_configured_continuous(bool scan_continuous)
Set from YAML (scan_parameters.continuous); also the value configured_continuous() reports and a bare...
void set_scan_interval(uint16_t scan_interval)
static constexpr ble_device_base::HubCapabilities get_capabilities()
void restart_scan_duration()
Re-anchor the one-shot duration clock of a running scan to now — used when an action changes the scan...
bool scan_continuous_configured_
void on_scan_report(const ln882h_ble::BLEScanReport &report) override
bool configured_continuous() const
void set_scan_active(bool scan_active)
void on_ota_global_state(ota::OTAState state, float progress, uint8_t error, ota::OTAComponent *comp) override
bool scan_running_before_ota_
uint32_t scan_start_time_
Listener interface for global OTA state changes (includes OTA component pointer).
constexpr float AFTER_WIFI
For components that should be initialized after WiFi is connected.
What a tracker's controller/SDK can do — consumers branch on data, not #ifdefs.
Subscriber slot for the raw-advertisement stream (the bluetooth_proxy path).
One scan report from the controller, decoded from the SDK's rw-task event (RSSI already sign-correcte...