SCLFlicError
enum SCLFlicError {}
These enums represents the different error codes that can be sent on both the SCLFlicPbFButton and SCLFlicPbFManager classes. Not all errors are relevant for you as a developer since a few of them are for internal use only. This list will be cleaned up and better explained soon.
-
An unknown error has occurred.
Declaration
Objective-C
SCLFlicErrorUnknown = 0
Swift
case unknown = 0
-
The framework was unable to forget the button.
Declaration
Objective-C
SCLFlicErrorCouldNotForgetButton = 1
Swift
case couldNotForgetButton = 1
-
If a connection to a Flic/PbF button failed for unknown reasons. This could for example be if Flic/PbF is brought out of range during a connection sequense.
Declaration
Objective-C
SCLFlicErrorConnectionFailed = 2
Swift
case connectionFailed = 2
-
The RSSI value could not be read.
Declaration
Objective-C
SCLFlicErrorCouldNotUpdateRSSI = 3
Swift
case couldNotUpdateRSSI = 3
-
The data sent by the Flic/PbF button does not confirn with the protocol specificatin.
Declaration
Objective-C
SCLFlicErrorUnknownDataReceived = 5
Swift
case unknownDataReceived = 5
-
The backend that is used for the initial verification sequence can not be reached.
Declaration
Objective-C
SCLFlicErrorBackendUnreachable = 7
Swift
case backendUnreachable = 7
-
The iOS device does not have an internet connection that is required in order to complete the task.
Declaration
Objective-C
SCLFlicErrorNoInternetConnection = 8
Swift
case noInternetConnection = 8
-
The backend was unable to unlock this button with the provided AppId and AppSecret.
Declaration
Objective-C
SCLFlicErrorCredentialsNotMatching = 9
Swift
case credentialsNotMatching = 9
-
If you try to access a Flic/PbF that is currently being used with another device or another app on the same iOS device.
Declaration
Objective-C
SCLFlicErrorButtonIsPrivate = 10
Swift
case buttonIsPrivate = 10
-
A crypthographic error has occurred.
Declaration
Objective-C
SCLFlicErrorCryptographicFailure = 11
Swift
case cryptographicFailure = 11
-
For some reason the button was disconnected before the verification sequense had time to complete.
Declaration
Objective-C
SCLFlicErrorButtonDisconnectedDuringVerification = 12
Swift
case buttonDisconnectedDuringVerification = 12
-
The request did not contain enough data to be completed.
Declaration
Objective-C
SCLFlicErrorMissingData = 13
Swift
case missingData = 13
-
The signature over the data is not valid. The data might be corrupt.
Declaration
Objective-C
SCLFlicErrorInvalidSignature = 14
Swift
case invalidSignature = 14
-
You are trying to grab a button that you have already grabbed before.
Declaration
Objective-C
SCLFlicErrorButtonAlreadyGrabbed = 15
Swift
case buttonAlreadyGrabbed = 15
-
The BLE pairing failed due to incompatible firmware, but the Flic/PbF can be upgraded.
Declaration
Objective-C
SCLFlicErrorBLEPairingFailedCanBeUpgraded = 16
Swift
case blePairingFailedCanBeUpgraded = 16
-
The BLE pairing failed due to incompatible firmware, but the Flic/PbF can be upgraded.
Declaration
Objective-C
SCLFlicErrorBLEPairingFailedCanNotBeUpgraded = 17
Swift
case blePairingFailedCanNotBeUpgraded = 17
-
The BLE pairing failed due to the user presseng cancel in the pair dialog.
Declaration
Objective-C
SCLFlicErrorBLEPairingFailedUserCanceled = 18
Swift
case blePairingFailedUserCanceled = 18
-
The BLE pairing failed due to unknown reason.
Declaration
Objective-C
SCLFlicErrorBLEPairingFailedUnknownReason = 19
Swift
case blePairingFailedUnknownReason = 19
-
The BLE pairing failed due to a previous pairing already being regisered on iOS. Pairing needs to be removed first.
Declaration
Objective-C
SCLFlicErrorBLEPairingFailedPreviousPairingAlreadyExisting = 20
Swift
case blePairingFailedPreviousPairingAlreadyExisting = 20
-
The Flic disconnected during update.
Declaration
Objective-C
SCLFlicErrorFirmwareUpdateDisconnected = 29
Swift
case firmwareUpdateDisconnected = 29
-
The backend returned an unexpected response code.
Declaration
Objective-C
SCLFlicErrorBackendUnexpectedResponseCode = 30
Swift
case backendUnexpectedResponseCode = 30
-
The button’s verification message was not valid.
Declaration
Objective-C
SCLFlicErrorIllegalVerificationResponse = 31
Swift
case illegalVerificationResponse = 31
-
The cryptographic signature generated by the button does not match the one generated by the backend server.
Declaration
Objective-C
SCLFlicErrorSignaturesNotMatching = 32
Swift
case signaturesNotMatching = 32
-
The iOS device was unable to performe the bluetooth specific service discovery.
Declaration
Objective-C
SCLFlicErrorCouldNotDiscoverServices = 33
Swift
case couldNotDiscoverServices = 33
-
The button was unable to create a stable connection even after a number of re-tries.
Declaration
Objective-C
SCLFlicErrorConnectionRetryLimitReached = 34
Swift
case connectionRetryLimitReached = 34
-
This code is send when a code within the Bluetooth’s Security Manager Specification occurs. In this case the SMP code will be included in the Localized Description of the error’s userInfo of the format: “SMP code: %d”
Declaration
Objective-C
SCLFlicErrorBluetoothSMPErrorCode = 35
Swift
case bluetoothSMPErrorCode = 35
-
Bluetooth specific error
Declaration
Objective-C
SCLFlicErrorBluetoothErrorUnknown = 100
Swift
case bluetoothErrorUnknown = 100
-
Bluetooth specific error
Declaration
Objective-C
SCLFlicErrorBluetoothErrorInvalidParameters = 101
Swift
case bluetoothErrorInvalidParameters = 101
-
Bluetooth specific error
Declaration
Objective-C
SCLFlicErrorBluetoothErrorInvalidHandle = 102
Swift
case bluetoothErrorInvalidHandle = 102
-
Bluetooth specific error
Declaration
Objective-C
SCLFlicErrorBluetoothErrorNotConnected = 103
Swift
case bluetoothErrorNotConnected = 103
-
Bluetooth specific error
Declaration
Objective-C
SCLFlicErrorBluetoothErrorOutOfSpace = 104
Swift
case bluetoothErrorOutOfSpace = 104
-
Bluetooth specific error
Declaration
Objective-C
SCLFlicErrorBluetoothErrorOperationCancelled = 105
Swift
case bluetoothErrorOperationCancelled = 105
-
Bluetooth specific error
Declaration
Objective-C
SCLFlicErrorBluetoothErrorConnectionLost = 106
Swift
case bluetoothErrorConnectionLost = 106
-
Bluetooth specific error
Declaration
Objective-C
SCLFlicErrorBluetoothErrorPeripheralDisconnected = 107
Swift
case bluetoothErrorPeripheralDisconnected = 107
-
Bluetooth specific error
Declaration
Objective-C
SCLFlicErrorBluetoothErrorUUIDNotAllowed = 108
Swift
case bluetoothErrorUUIDNotAllowed = 108
-
Bluetooth specific error
Declaration
Objective-C
SCLFlicErrorBluetoothErrorAlreadyAdvertising = 109
Swift
case bluetoothErrorAlreadyAdvertising = 109
-
Bluetooth specific error
Declaration
Objective-C
SCLFlicErrorBluetoothErrorConnectionFailed = 110
Swift
case bluetoothErrorConnectionFailed = 110
-
Bluetooth specific error
Declaration
Objective-C
SCLFlicErrorBluetoothErrorConnectionLimitReached = 111
Swift
case bluetoothErrorConnectionLimitReached = 111
-
Connection was refused by Flic
Declaration
Objective-C
SCLFlicErrorFlicRefusedConnection = 200
Swift
case flicRefusedConnection = 200