BleError
Enum: BleError
Ble error types
Conforms to: Error, CustomNSError
Properties
errorDomain: String
public static var errorDomain: String
The error domain for BLE errors, com.cartrack.ble
actionCode: Int
public var actionCode: Int { get }
For CtgError errors, the command the terminal answered: 32 ignition state, 33 vehicle stats, 45 connect, 56 authentication, 57 lock, 58 unlock, 59 headlight, 60 horn, 61 unlock without key fob, 63 lock state. For the other errors, -1.
errorCode: Int
public var errorCode: Int { get }
Error code
localizedDescription: String
public var localizedDescription: String { get }
Error description
Error Cases
bluetoohUnauthorized
case bluetoohUnauthorized
- Error Code: 1
- Description: Phone: Bluetooth permission is not granted, please allow it when asked or in Settings (up to 3.0.2:
... please go to settings to grant permission)
The user refused Bluetooth for the app, or, from 3.0.4, a connection attempt timed out while the Bluetooth permission prompt was still unanswered.
bluetoothDisabled
case bluetoothDisabled
- Error Code: 2
- Description: Phone: Bluetooth is disabled, please go to settings to enable it
bluetoohUnsupported
case bluetoohUnsupported
- Error Code: 3
- Description: Phone: Device does not support Bluetooh Low Energy
saveAuthKeyFailed
case saveAuthKeyFailed
- Error Code: 4
- Description: Keychain: Failed to save the key in keychain
keyNotFound
case keyNotFound
- Error Code: 5
- Description: Keychain: Authentication key not found
keyInvalid
case keyInvalid
- Error Code: 6
- Description: BLE: Authentication key is invalid
terminalNotFound
case terminalNotFound
- Error Code: 7
- Description: BLE Scan: Terminal not found
notConnected
case notConnected
- Error Code: 8
- Description: Not connected to Ble Terminal
ctgError(Int, Int, String)
case ctgError(Int, Int, String)
Failed due to Terminal action, refer to CtgError
- Parameters:
- Action code (Int)
- Error code (Int)
- Description (String)
See Also
- CtgError - Terminal-specific error codes
- BleTerminalDelegate - For receiving error callbacks
- BleTerminal - Terminal operations that can produce errors