BluejayError
public enum BluejayError
Errors specific to Bluejay.
-
Bluetooth is either turned off or unavailable.
Declaration
Swift
case bluetoothUnavailable
-
Bluejay does not support another scanning request if Bluejay is still scanning.
Declaration
Swift
case multipleScanNotSupported
-
Bluejay does not support another connection request if Bluejay is already connected or still connecting.
Declaration
Swift
case multipleConnectNotSupported
-
Bluejay does not support another disconnection request if Bluejay is still disconnecting.
Declaration
Swift
case multipleDisconnectNotSupported
-
A connection request in Bluejay has timed out.
Declaration
Swift
case connectionTimedOut
-
Bluejay is not connected to a peripheral.
Declaration
Swift
case notConnected
-
A Bluetooth service is not found.
Declaration
Swift
case missingService(ServiceIdentifier)
-
A Bluetooth characteristic is not found.
Declaration
Swift
case missingCharacteristic(CharacteristicIdentifier)
-
A Bluetooth operation is cancelled.
Declaration
Swift
case cancelled
-
Bluejay disconnect is called.
Declaration
Swift
case explicitDisconnect
-
Bluejay disconnected unexpectedly.
Declaration
Swift
case unexpectedDisconnect
-
A disconnection operation is queued.
Declaration
Swift
case disconnectQueued
-
An attempt to listen on a characteristic has timed out.
Declaration
Swift
case listenTimedOut
-
An attempt to read a characteristic has failed.
Declaration
Swift
case readFailed
-
An attempt to write a characteristic has failed.
Declaration
Swift
case writeFailed
-
An attempt to read a value from a characteristic has returned no data unexpectedly.
Declaration
Swift
case missingData
-
An attempt to read a range of data has failed due to incorrect bounds or an unexpected length.
Declaration
Swift
case dataOutOfBounds(start: Int, length: Int, count: Int)
-
An unexpected peripheral is cached and retrieved from CoreBluetooth.
Declaration
Swift
case unexpectedPeripheral(PeripheralIdentifier)
-
iOS will not continue scanning in the background if allow duplicates is turned on.
Declaration
Swift
case allowDuplicatesInBackgroundNotSupported
-
iOS will not continue scanning in the background if no service identifiers are specified.
Declaration
Swift
case missingServiceIdentifiersInBackground
-
Bluejay does not support further Bluetooth operations while a Bluejay background task is still running.
Declaration
Swift
case backgroundTaskRunning
-
Bluejay does not support another Bluejay background task when there is already one that is still running.
Declaration
Swift
case multipleBackgroundTaskNotSupported
-
Indefinite flush will not exit.
Declaration
Swift
case indefiniteFlush
-
Bluejay has stopped.
Declaration
Swift
case stopped
-
Bluejay cannot perform certain actions when background restoration is still in progress.
Declaration
Swift
case backgroundRestorationInProgress
-
Startup background task has expired during state restoration.
Declaration
Swift
case startupBackgroundTaskExpired
-
The original listen declared that duplicated listens are not allowed.
Declaration
Swift
case multipleListenTrapped
-
The original listen declared that it can be replaced by a new listen.
Declaration
Swift
case multipleListenReplaced
-
Declaration
Swift
public var errorDescription: String? { get }
-
Declaration
Swift
public static var errorDomain: String { get }
-
Declaration
Swift
public var errorCode: Int { get }
-
Declaration
Swift
public var errorUserInfo: [String : Any] { get }