The possible errors returned during Bluetooth low energy transactions.


enum CBError.Code : Int, _ErrorCodeProtocol


Error Codes

case unknown

An unknown error occurred.

case invalidParameters

The specified parameters are invalid.

case invalidHandle

The specified attribute handle is invalid.

case notConnected

The device isn’t currently connected.

case outOfSpace

The device has run out of space to complete the intended operation.

case operationCancelled

The error represents a canceled operation.

case connectionTimeout

The connection timed out.

case peripheralDisconnected

The peripheral disconnected.

case uuidNotAllowed

The specified UUID isn’t permitted.

case alreadyAdvertising

The peripheral is already advertising.

case connectionFailed

The connection failed.

case connectionLimitReached

The device already has the maximum number of connections.

case operationNotSupported

The operation isn’t supported.

case unkownDevice

A misspelled version of the unknown device error code.


See Also


struct CBError

An error encountered while using Core Bluetooth.

let CBErrorDomain: String

The domain for Core Bluetooth errors.

struct CBATTError

An error encountered while using Attribute Protocol (ATT).

let CBATTErrorDomain: String

The domain for Core Bluetooth ATT errors.

enum CBATTError.Code

The possible errors returned by a GATT server (a remote peripheral) during Bluetooth low energy ATT transactions.