TagConnectionState

public enum TagConnectionState

The states published by the tag connection publisher.

  • This is initial state, and also the state while waiting for reconnection.

    To conserve battery if the Jacqaurd tag is kept idle for 10 Minutes it will drop BLE connection. This state is also transitioned when the tag is moves out of the Bluetooth range of the mobile device.

    Declaration

    Swift

    case preparingToConnect
  • Connecting with approximate progress.

    First Int is the current step, second Int is total number of steps (including initializing)

    Declaration

    Swift

    case connecting(Int, Int)
  • Initializing with approximate progress.

    First Int is the current step, second Int is total number of steps. This continues on from the progress reported by the connecting state.

    Declaration

    Swift

    case initializing(Int, Int)
  • Configuring with approximate progress.

    First Int is the current step, second Int is total number of steps. This continues on from the progress reported by the initializing state.

    Declaration

    Swift

    case configuring(Int, Int)
  • Indicates intermediate firmware update has been started.

    Declaration

    Swift

    case firmwareUpdateInitiated
  • Firmware update transfer with progress.

    Declaration

    Swift

    case firmwareTransferring(Float)
  • When firmware transfer completes.

    Declaration

    Swift

    case firmwareTransferCompleted
  • Firmware execution is in progress.

    Declaration

    Swift

    case firmwareExecuting
  • Note this is not a terminal state - the stream may be back to disconnected, and then subsequently reconnect again.

    Declaration

    Swift

    case connected(ConnectedTag)
  • This terminal state will only be reached if reconnecting or retrying is not possible.

    Declaration

    Swift

    case disconnected(Error?)