mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 22:56:12 -04:00
No-op the disconnect method in the BLE GATT client
PiperOrigin-RevId: 696171997
This commit is contained in:
committed by
Copybara-Service
parent
bdb220fcfd
commit
01a4c7967e
@@ -128,7 +128,10 @@ bool GattClient::SetCharacteristicSubscription(
|
||||
}
|
||||
|
||||
void GattClient::Disconnect() {
|
||||
[gatt_client_ disconnect];
|
||||
// There seems to be an issue between some iOS<>Android device pairs where the Android device will
|
||||
// not connect to the iOS device if the iOS device disconnects and then attempts to reconnect.
|
||||
// Because of this, we no-op here instead of calling `[gatt_client_ disconnect]`.
|
||||
// See: b/375176623
|
||||
}
|
||||
|
||||
} // namespace apple
|
||||
|
||||
@@ -119,8 +119,6 @@ bool BleMedium::StopAdvertising() {
|
||||
void BleMedium::HandleAdvertisementFound(id<GNCPeripheral> peripheral,
|
||||
NSDictionary<CBUUID *, NSData *> *serviceData) {
|
||||
absl::MutexLock lock(&peripherals_mutex_);
|
||||
[socketCentralManager_ retrievePeripheralWithIdentifier:peripheral.identifier
|
||||
advertisementData:@{}];
|
||||
|
||||
api::ble_v2::BleAdvertisementData data;
|
||||
for (CBUUID *key in serviceData.allKeys) {
|
||||
|
||||
Reference in New Issue
Block a user