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