---
title: name
framework: corebluetooth
role: symbol
role_heading: Instance Property
path: corebluetooth/cbperipheral/name
---

# name

The name of the peripheral.

## Declaration

```swift
var name: String? { get }
```

## Discussion

Discussion Use this property to retrieve a human-readable name of the peripheral. A peripheral may have two different name types: one that the device advertises and another that the device publishes in its database as its Bluetooth low energy Generic Access Profile (GAP) device name. If a peripheral has both types of names, this property returns its GAP device name.

## Topics

### Related Documentation

- [peripheralDidUpdateName(_:)](corebluetooth/cbperipheraldelegate/peripheraldidupdatename(_:).md)

## See Also

### Identifying a Peripheral

- [delegate](corebluetooth/cbperipheral/delegate.md)
