From e46b19c7986267b6a55da0eece6c45780fd39a94 Mon Sep 17 00:00:00 2001 From: Janusz Sobczak Date: Fri, 16 Jun 2023 14:53:42 -0700 Subject: [PATCH] Use the MAC address as peripheral name We use BlePeirpheral::GetName()` as a mac address. PiperOrigin-RevId: 541010558 --- internal/platform/implementation/g3/bluetooth_adapter.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/platform/implementation/g3/bluetooth_adapter.cc b/internal/platform/implementation/g3/bluetooth_adapter.cc index 9dac3138..de2b8c95 100644 --- a/internal/platform/implementation/g3/bluetooth_adapter.cc +++ b/internal/platform/implementation/g3/bluetooth_adapter.cc @@ -30,7 +30,7 @@ constexpr std::uint64_t kMacAddressMask = 0x0000FFFFFFFFFFFF; BlePeripheral::BlePeripheral(BluetoothAdapter* adapter) : adapter_(*adapter) {} -std::string BlePeripheral::GetName() const { return adapter_.GetName(); } +std::string BlePeripheral::GetName() const { return adapter_.GetMacAddress(); } ByteArray BlePeripheral::GetAdvertisementBytes( const std::string& service_id) const {