Use the MAC address as peripheral name

We use BlePeirpheral::GetName()` as a mac address.

PiperOrigin-RevId: 541010558
This commit is contained in:
Janusz Sobczak
2023-06-16 14:54:42 -07:00
committed by Copybara-Service
parent 4b13033389
commit e46b19c798
@@ -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 {