mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Add robust gatt client
PiperOrigin-RevId: 539817203
This commit is contained in:
committed by
Copybara-Service
parent
5aeceb2034
commit
ca60afa007
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user