Fix GATT DiscoverServiceAndCharacteristics

PiperOrigin-RevId: 525295071
This commit is contained in:
Qin Wang
2023-04-18 17:22:31 -07:00
committed by Copybara-Service
parent c40e011267
commit f300012bcd
@@ -213,10 +213,11 @@ bool BleGattClient::DiscoverServiceAndCharacteristics(
// found all characteristics.
NEARBY_LOGS(VERBOSE) << __func__ << ": Found all characteristics.";
break;
return true;
}
return true;
NEARBY_LOGS(VERBOSE) << __func__
<< ": Failed to find service and all characteristics.";
} catch (std::exception exception) {
NEARBY_LOGS(ERROR) << __func__
<< ": Failed to get GATT services. exception: "