A request that uses the Attribute Protocol (ATT).


class CBATTRequest : NSObject


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.


Requesting to Read and Write Characteristic Values

var central: CBCentral

The remote central device that originated the request.

var characteristic: CBCharacteristic

The characteristic to read or write the value of.

var value: Data?

The data that the central reads from or writes to the peripheral.

var offset: Int

The zero-based index of the first byte for the read or write request.


Inherits From

Conforms To

See Also

Supporting Types

class CBManager

The abstract base class that manages central and peripheral objects.

class CBPeer

An object that represents a remote device.

class CBUUID

A universally unique identifier, as defined by Bluetooth standards.