mirror of
https://github.com/esphome/esphome.git
synced 2026-09-18 02:28:42 +00:00
[bluetooth_connection] Use a user provided default constructor for BluedroidGattClient (#19201)
This commit is contained in:
@@ -31,6 +31,9 @@ class BluetoothConnection;
|
||||
// void disconnect() cannot overload with an int-returning twin.
|
||||
class BluedroidGattClient final : public esp32_ble_tracker::ESPBTClient, public Component {
|
||||
public:
|
||||
// User provided, not "= default": `new(p) BluedroidGattClient()` would zero-fill .bss that is already zero.
|
||||
BluedroidGattClient() {}
|
||||
|
||||
static constexpr uint16_t UNSET_CONN_ID = 0xFFFF;
|
||||
|
||||
// Lifecycle of one connection attempt's service search.
|
||||
|
||||
Reference in New Issue
Block a user