1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-30 06:33:51 +00:00

[bluetooth_proxy] Batch BLE service discovery messages for 67% reduction in API traffic

This commit is contained in:
J. Nick Koston
2025-07-30 14:50:20 -10:00
parent 12cd1ec525
commit ecb029e0a7

View File

@@ -199,9 +199,7 @@ void BluetoothConnection::send_service_for_discovery_() {
}
// Send the message with 1-3 services
if (services_processed > 0) {
api_conn->send_message(resp, api::BluetoothGATTGetServicesResponse::MESSAGE_TYPE);
}
api_conn->send_message(resp, api::BluetoothGATTGetServicesResponse::MESSAGE_TYPE);
}
bool BluetoothConnection::gattc_event_handler(esp_gattc_cb_event_t event, esp_gatt_if_t gattc_if,