SCPDisconnectReason

Objective-C

enum SCPDisconnectReason : NSUInteger {}

Swift

enum DisconnectReason : UInt, @unchecked Sendable

Possible reasons for Bluetooth reader disconnects.

  • Unexpected disconnect.

    Declaration

    Objective-C

    SCPDisconnectReasonUnknown

    Swift

    case unknown = 0
  • Terminal.disconnectReader was called.

    Declaration

    Objective-C

    SCPDisconnectReasonDisconnectRequested

    Swift

    case disconnectRequested = 1
  • Terminal.rebootReader was called.

    Declaration

    Objective-C

    SCPDisconnectReasonRebootRequested

    Swift

    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

    SCPDisconnectReasonSecurityReboot

    Swift

    case securityReboot = 3
  • Reader disconnected because its battery was critically low and needs to be charged before it can be used.

    Declaration

    Objective-C

    SCPDisconnectReasonCriticallyLowBattery

    Swift

    case criticallyLowBattery = 4
  • Reader was powered off.

    Declaration

    Objective-C

    SCPDisconnectReasonPoweredOff

    Swift

    case poweredOff = 5
  • Bluetooth was disabled on the device.

    Declaration

    Objective-C

    SCPDisconnectReasonBluetoothDisabled

    Swift

    case bluetoothDisabled = 6
  • The mobile reader automatically powers down after 10 hours of inactivity when not charging, to conserve battery life

    Declaration

    Objective-C

    SCPDisconnectReasonIdlePowerDown

    Swift

    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

    SCPDisconnectReasonUsbDisconnected

    Swift

    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

    SCPDisconnectReasonBluetoothSignalLost

    Swift

    case bluetoothSignalLost = 9