mirror of
https://github.com/esphome/esphome.git
synced 2025-08-01 07:57:47 +00:00
rpreen
This commit is contained in:
parent
7afb2fe077
commit
2c63d5c7ce
@ -60,7 +60,7 @@ void BluetoothConnection::reset_connection_(esp_err_t reason) {
|
|||||||
void BluetoothConnection::send_service_for_discovery_() {
|
void BluetoothConnection::send_service_for_discovery_() {
|
||||||
if (this->send_service_ == this->service_count_) {
|
if (this->send_service_ == this->service_count_) {
|
||||||
this->send_service_ = DONE_SENDING_SERVICES;
|
this->send_service_ = DONE_SENDING_SERVICES;
|
||||||
this->proxy_->send_gatt_services_done(this->get_address());
|
this->proxy_->send_gatt_services_done(this->address_);
|
||||||
if (this->connection_type_ == espbt::ConnectionType::V3_WITH_CACHE ||
|
if (this->connection_type_ == espbt::ConnectionType::V3_WITH_CACHE ||
|
||||||
this->connection_type_ == espbt::ConnectionType::V3_WITHOUT_CACHE) {
|
this->connection_type_ == espbt::ConnectionType::V3_WITHOUT_CACHE) {
|
||||||
this->release_services();
|
this->release_services();
|
||||||
@ -94,7 +94,7 @@ void BluetoothConnection::send_service_for_discovery_() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
api::BluetoothGATTGetServicesResponse resp;
|
api::BluetoothGATTGetServicesResponse resp;
|
||||||
resp.address = this->get_address();
|
resp.address = this->address_;
|
||||||
resp.services.reserve(1); // Always one service per response in this implementation
|
resp.services.reserve(1); // Always one service per response in this implementation
|
||||||
api::BluetoothGATTService service_resp;
|
api::BluetoothGATTService service_resp;
|
||||||
service_resp.uuid = get_128bit_uuid_vec(service_result.uuid);
|
service_resp.uuid = get_128bit_uuid_vec(service_result.uuid);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user