SCPDisconnectReason
Objective-C
enum SCPDisconnectReason : NSUInteger {}
Swift
enum DisconnectReason : UInt, @unchecked Sendable
Possible reasons for Bluetooth reader disconnects.
-
Unexpected disconnect.
Declaration
Objective-C
SCPDisconnectReasonUnknownSwift
case unknown = 0 -
Terminal.disconnectReader was called.
Declaration
Objective-C
SCPDisconnectReasonDisconnectRequestedSwift
case disconnectRequested = 1 -
Terminal.rebootReader was called.
Declaration
Objective-C
SCPDisconnectReasonRebootRequestedSwift
case rebootRequested = 2 -
Reader disconnected after performing its required security reboot. This will happen if the reader has been running for 24 hours. To control this you can call Terminal.rebootReader which will reset the 24 hour timer.
Declaration
Objective-C
SCPDisconnectReasonSecurityRebootSwift
case securityReboot = 3 -
Reader disconnected because its battery was critically low and needs to be charged before it can be used.
Declaration
Objective-C
SCPDisconnectReasonCriticallyLowBatterySwift
case criticallyLowBattery = 4 -
Reader was powered off.
Declaration
Objective-C
SCPDisconnectReasonPoweredOffSwift
case poweredOff = 5 -
Bluetooth was disabled on the device.
Declaration
Objective-C
SCPDisconnectReasonBluetoothDisabledSwift
case bluetoothDisabled = 6 -
The mobile reader automatically powers down after 10 hours of inactivity when not charging, to conserve battery life
Declaration
Objective-C
SCPDisconnectReasonIdlePowerDownSwift
case idlePowerDown = 7 -
The mobile reader has been disconnected due to the USB cable being physically disconnected. This may also occur when the USB driver is disabled in the app settings.
Declaration
Objective-C
SCPDisconnectReasonUsbDisconnectedSwift
case usbDisconnected = 8 -
The mobile reader’s Bluetooth signal has been lost, either because it is out of range, or due to wireless interference.
Declaration
Objective-C
SCPDisconnectReasonBluetoothSignalLostSwift
case bluetoothSignalLost = 9 -
The mobile reader’s Bluetooth pairing has been cleared. Forget the reader in iOS Settings.
Declaration
Objective-C
SCPDisconnectReasonPeerRemovedPairingInformationSwift
case peerRemovedPairingInformation = 10