mirror of
https://github.com/esphome/esphome.git
synced 2025-10-30 14:43:51 +00:00
[bluetooth_proxy] Batch BLE service discovery messages for 67% reduction in API traffic
This commit is contained in:
@@ -199,10 +199,8 @@ 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);
|
||||
}
|
||||
}
|
||||
|
||||
bool BluetoothConnection::gattc_event_handler(esp_gattc_cb_event_t event, esp_gatt_if_t gattc_if,
|
||||
esp_ble_gattc_cb_param_t *param) {
|
||||
|
||||
Reference in New Issue
Block a user