---
title: CBATTRequest
framework: corebluetooth
role: symbol
role_heading: Class
path: corebluetooth/cbattrequest
---

# CBATTRequest

A request that uses the Attribute Protocol (ATT).

## Declaration

```swift
class CBATTRequest
```

## Overview

Overview The CBATTRequest class represents Attribute Protocol (ATT) read and write requests from remote central devices (represented by CBCentral objects). Remote centrals use these ATT requests to read and write characteristic values on local peripherals (represented by CBPeripheralManager objects). Local peripherals, on the other hand, use the properties of CBATTRequest objects to respond to the read and write requests appropriately, using the respond(to:withResult:) method of the CBPeripheralManager class.

## Topics

### Requesting to Read and Write Characteristic Values

- [central](corebluetooth/cbattrequest/central.md)
- [characteristic](corebluetooth/cbattrequest/characteristic.md)
- [value](corebluetooth/cbattrequest/value.md)
- [offset](corebluetooth/cbattrequest/offset.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Supporting Types

- [CBManager](corebluetooth/cbmanager.md)
- [CBPeer](corebluetooth/cbpeer.md)
- [CBUUID](corebluetooth/cbuuid.md)
