Add robust gatt client

PiperOrigin-RevId: 539817203
This commit is contained in:
Janusz Sobczak
2023-06-12 18:29:59 -07:00
committed by Copybara-Service
parent 5aeceb2034
commit ca60afa007
6 changed files with 1338 additions and 1 deletions
+2
View File
@@ -83,6 +83,8 @@ cc_library(
copts = ["-DNO_WEBRTC"],
visibility = [
"//connections/implementation:__subpackages__",
"//fastpair/internal:__pkg__",
"//fastpair/internal/mediums:__pkg__",
"//internal/network:__subpackages__",
"//internal/platform:__pkg__",
"//internal/platform/implementation:__subpackages__",
@@ -581,6 +581,7 @@ bool BleV2Medium::GattServer::HasCharacteristic(
}
void BleV2Medium::GattServer::Stop() {
if (stopped_) return;
NEARBY_LOGS(INFO) << "G3 Ble GattServer Stop";
stopped_ = true;
characteristics_.clear();