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 = 0Swift
case unknown = 0 -
The framework was unable to forget the button.
Declaration
Objective-C
SCLFlicErrorCouldNotForgetButton = 1Swift
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 = 2Swift
case connectionFailed = 2 -
The RSSI value could not be read.
Declaration
Objective-C
SCLFlicErrorCouldNotUpdateRSSI = 3Swift
case couldNotUpdateRSSI = 3 -
The data sent by the Flic/PbF button does not confirn with the protocol specificatin.
Declaration
Objective-C
SCLFlicErrorUnknownDataReceived = 5Swift
case unknownDataReceived = 5 -
The backend that is used for the initial verification sequence can not be reached.
Declaration
Objective-C
SCLFlicErrorBackendUnreachable = 7Swift
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 = 8Swift
case noInternetConnection = 8 -
The backend was unable to unlock this button with the provided AppId and AppSecret.
Declaration
Objective-C
SCLFlicErrorCredentialsNotMatching = 9Swift
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 = 10Swift
case buttonIsPrivate = 10 -
A crypthographic error has occurred.
Declaration
Objective-C
SCLFlicErrorCryptographicFailure = 11Swift
case cryptographicFailure = 11 -
For some reason the button was disconnected before the verification sequense had time to complete.
Declaration
Objective-C
SCLFlicErrorButtonDisconnectedDuringVerification = 12Swift
case buttonDisconnectedDuringVerification = 12 -
The request did not contain enough data to be completed.
Declaration
Objective-C
SCLFlicErrorMissingData = 13Swift
case missingData = 13 -
The signature over the data is not valid. The data might be corrupt.
Declaration
Objective-C
SCLFlicErrorInvalidSignature = 14Swift
case invalidSignature = 14 -
You are trying to grab a button that you have already grabbed before.
Declaration
Objective-C
SCLFlicErrorButtonAlreadyGrabbed = 15Swift
case buttonAlreadyGrabbed = 15 -
The BLE pairing failed due to incompatible firmware, but the Flic/PbF can be upgraded.
Declaration
Objective-C
SCLFlicErrorBLEPairingFailedCanBeUpgraded = 16Swift
case blePairingFailedCanBeUpgraded = 16 -
The BLE pairing failed due to incompatible firmware, but the Flic/PbF can be upgraded.
Declaration
Objective-C
SCLFlicErrorBLEPairingFailedCanNotBeUpgraded = 17Swift
case blePairingFailedCanNotBeUpgraded = 17 -
The BLE pairing failed due to the user presseng cancel in the pair dialog.
Declaration
Objective-C
SCLFlicErrorBLEPairingFailedUserCanceled = 18Swift
case blePairingFailedUserCanceled = 18 -
The BLE pairing failed due to unknown reason.
Declaration
Objective-C
SCLFlicErrorBLEPairingFailedUnknownReason = 19Swift
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 = 20Swift
case blePairingFailedPreviousPairingAlreadyExisting = 20 -
The Flic disconnected during update.
Declaration
Objective-C
SCLFlicErrorFirmwareUpdateDisconnected = 29Swift
case firmwareUpdateDisconnected = 29 -
The backend returned an unexpected response code.
Declaration
Objective-C
SCLFlicErrorBackendUnexpectedResponseCode = 30Swift
case backendUnexpectedResponseCode = 30 -
The button’s verification message was not valid.
Declaration
Objective-C
SCLFlicErrorIllegalVerificationResponse = 31Swift
case illegalVerificationResponse = 31 -
The cryptographic signature generated by the button does not match the one generated by the backend server.
Declaration
Objective-C
SCLFlicErrorSignaturesNotMatching = 32Swift
case signaturesNotMatching = 32 -
The iOS device was unable to performe the bluetooth specific service discovery.
Declaration
Objective-C
SCLFlicErrorCouldNotDiscoverServices = 33Swift
case couldNotDiscoverServices = 33 -
The button was unable to create a stable connection even after a number of re-tries.
Declaration
Objective-C
SCLFlicErrorConnectionRetryLimitReached = 34Swift
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 = 35Swift
case bluetoothSMPErrorCode = 35 -
Bluetooth specific error
Declaration
Objective-C
SCLFlicErrorBluetoothErrorUnknown = 100Swift
case bluetoothErrorUnknown = 100 -
Bluetooth specific error
Declaration
Objective-C
SCLFlicErrorBluetoothErrorInvalidParameters = 101Swift
case bluetoothErrorInvalidParameters = 101 -
Bluetooth specific error
Declaration
Objective-C
SCLFlicErrorBluetoothErrorInvalidHandle = 102Swift
case bluetoothErrorInvalidHandle = 102 -
Bluetooth specific error
Declaration
Objective-C
SCLFlicErrorBluetoothErrorNotConnected = 103Swift
case bluetoothErrorNotConnected = 103 -
Bluetooth specific error
Declaration
Objective-C
SCLFlicErrorBluetoothErrorOutOfSpace = 104Swift
case bluetoothErrorOutOfSpace = 104 -
Bluetooth specific error
Declaration
Objective-C
SCLFlicErrorBluetoothErrorOperationCancelled = 105Swift
case bluetoothErrorOperationCancelled = 105 -
Bluetooth specific error
Declaration
Objective-C
SCLFlicErrorBluetoothErrorConnectionLost = 106Swift
case bluetoothErrorConnectionLost = 106 -
Bluetooth specific error
Declaration
Objective-C
SCLFlicErrorBluetoothErrorPeripheralDisconnected = 107Swift
case bluetoothErrorPeripheralDisconnected = 107 -
Bluetooth specific error
Declaration
Objective-C
SCLFlicErrorBluetoothErrorUUIDNotAllowed = 108Swift
case bluetoothErrorUUIDNotAllowed = 108 -
Bluetooth specific error
Declaration
Objective-C
SCLFlicErrorBluetoothErrorAlreadyAdvertising = 109Swift
case bluetoothErrorAlreadyAdvertising = 109 -
Bluetooth specific error
Declaration
Objective-C
SCLFlicErrorBluetoothErrorConnectionFailed = 110Swift
case bluetoothErrorConnectionFailed = 110 -
Bluetooth specific error
Declaration
Objective-C
SCLFlicErrorBluetoothErrorConnectionLimitReached = 111Swift
case bluetoothErrorConnectionLimitReached = 111 -
Connection was refused by Flic
Declaration
Objective-C
SCLFlicErrorFlicRefusedConnection = 200Swift
case flicRefusedConnection = 200
SCLFlicError Enumeration Reference