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

# state

The connection state of the peripheral.

## Declaration

```swift
var state: CBPeripheralState { get }
```

## Discussion

Discussion This property represents the current connection state of the peripheral. For a list of the possible values, see CBPeripheralState.

## See Also

### Monitoring a Peripheral’s Connection State

- [CBPeripheralState](corebluetooth/cbperipheralstate.md)
- [canSendWriteWithoutResponse](corebluetooth/cbperipheral/cansendwritewithoutresponse.md)
