mirror of
https://github.com/esphome/esphome.git
synced 2025-09-14 01:02:19 +01:00
[ble_client, bluetooth_proxy, esp32_ble_client, esp32_ble_tracker] fix ble proxy stop working (#7901)
Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
@@ -178,7 +178,7 @@ class ESPBTClient : public ESPBTDeviceListener {
|
||||
int app_id;
|
||||
|
||||
protected:
|
||||
ClientState state_;
|
||||
ClientState state_{ClientState::INIT};
|
||||
};
|
||||
|
||||
class ESP32BLETracker : public Component,
|
||||
@@ -229,7 +229,7 @@ class ESP32BLETracker : public Component,
|
||||
/// Called when a `ESP_GAP_BLE_SCAN_STOP_COMPLETE_EVT` event is received.
|
||||
void gap_scan_stop_complete_(const esp_ble_gap_cb_param_t::ble_scan_stop_cmpl_evt_param ¶m);
|
||||
|
||||
int app_id_;
|
||||
int app_id_{0};
|
||||
|
||||
/// Vector of addresses that have already been printed in print_bt_device_info
|
||||
std::vector<uint64_t> already_discovered_;
|
||||
@@ -242,10 +242,10 @@ class ESP32BLETracker : public Component,
|
||||
uint32_t scan_duration_;
|
||||
uint32_t scan_interval_;
|
||||
uint32_t scan_window_;
|
||||
uint8_t scan_start_fail_count_;
|
||||
uint8_t scan_start_fail_count_{0};
|
||||
bool scan_continuous_;
|
||||
bool scan_active_;
|
||||
bool scanner_idle_;
|
||||
bool scanner_idle_{true};
|
||||
bool ble_was_disabled_{true};
|
||||
bool raw_advertisements_{false};
|
||||
bool parse_advertisements_{false};
|
||||
@@ -260,6 +260,10 @@ class ESP32BLETracker : public Component,
|
||||
esp_ble_gap_cb_param_t::ble_scan_result_evt_param *scan_result_buffer_;
|
||||
esp_bt_status_t scan_start_failed_{ESP_BT_STATUS_SUCCESS};
|
||||
esp_bt_status_t scan_set_param_failed_{ESP_BT_STATUS_SUCCESS};
|
||||
int connecting_{0};
|
||||
int discovered_{0};
|
||||
int searching_{0};
|
||||
int disconnecting_{0};
|
||||
};
|
||||
|
||||
// NOLINTNEXTLINE
|
||||
|
Reference in New Issue
Block a user