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,9 +199,7 @@ void BluetoothConnection::send_service_for_discovery_() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Send the message with 1-3 services
|
// 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,
|
bool BluetoothConnection::gattc_event_handler(esp_gattc_cb_event_t event, esp_gatt_if_t gattc_if,
|
||||||
|
|||||||
Reference in New Issue
Block a user