1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-30 22:53:59 +00:00

[bluetooth_proxy] Optimize connection loop to reduce CPU usage (#10133)

This commit is contained in:
J. Nick Koston
2025-08-07 16:24:26 -10:00
committed by GitHub
parent 58504662d8
commit 7e4d09dbd8
4 changed files with 20 additions and 9 deletions

View File

@@ -44,7 +44,7 @@ class BluetoothConnection : public esp32_ble_client::BLEClientBase {
BluetoothProxy *proxy_;
// Group 2: 2-byte types
int16_t send_service_{-2}; // Needs to handle negative values and service count
int16_t send_service_{-3}; // -3 = INIT_SENDING_SERVICES, -2 = DONE_SENDING_SERVICES, >=0 = service index
// Group 3: 1-byte types
bool seen_mtu_or_services_{false};