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
-
A Bluetooth operation such as, reading or writing, is attempted when 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
-
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 scanningWithAllowDuplicatesInBackgroundNotSupported
-
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
-
Bluejay has failed to encode a listen cache.
Declaration
Swift
case listenCacheEncoding(Error)
-
Bluejay has failed to decode a listen cache.
Declaration
Swift
case listenCacheDecoding(Error)
-
Declaration
Swift
public var errorDescription: String?
-
Declaration
Swift
public static var errorDomain: String
-
Declaration
Swift
public var errorCode: Int
-
Declaration
Swift
public var errorUserInfo: [String : Any]