finished merge with upstream

This commit is contained in:
Lasan Mahaliyana
2026-06-13 22:02:21 +05:30
parent c34efc75f8
commit c20d7affc4
11 changed files with 31 additions and 105 deletions
@@ -242,18 +242,19 @@ void BleV2Socket::SetGattClient(
});
// Subscribe to RX characteristic to receive data
bool subscribed = gatt_client_->SetCharacteristicSubscription(
rx_char_, /*enable=*/true,
[this](absl::string_view value) {
if (!IsClosed()) {
ByteArray data(value.data(), value.size());
input_stream_.ReceiveData(data);
}
});
if (!subscribed) {
LOG(ERROR) << "Failed to subscribe to RX characteristic";
}
//bool subscribed = gatt_client_->SetCharacteristicSubscription(
// rx_char_, /*enable=*/true,
// [this](absl::string_view value) {
// if (!IsClosed()) {
// ByteArray data(value.data(), value.size());
// input_stream_.ReceiveData(data);
// }
// });
//if (!subscribed) {
// LOG(ERROR) << "Failed to subscribe to RX characteristic";
//}
LOG(INFO) << "BLE socket configured with GATT client, RX: "
<< std::string(rx_char.uuid)