ESTDeviceConnectable

@interface ESTDeviceConnectable : ESTDevice

ESTDeviceConnectable is a superclass for connectable Estimote devices.

  • Delegate object that will get method calls related to connection.

    Declaration

    Objective-C

    @property (readwrite, nonatomic)
        id<ESTDeviceConnectableDelegate> _Nullable delegate;

    Swift

    weak var delegate: ESTDeviceConnectableDelegate? { get set }
  • Status of device connection.

    Declaration

    Objective-C

    @property (readonly, assign, nonatomic) ESTConnectionStatus connectionStatus;

    Swift

    var connectionStatus: ESTConnectionStatus { get }
  • Perform connection to the device.

    Declaration

    Objective-C

    - (void)connect;

    Swift

    func connect()
  • Perform connection to the device with automatic firmware update.

    Declaration

    Objective-C

    - (void)connectAndUpdate;

    Swift

    func connectAndUpdate()
  • Cancel connection to the device.

    Declaration

    Objective-C

    - (void)disconnect;

    Swift

    func disconnect()
  • Allows to validate firmware update availability.

    Declaration

    Objective-C

    - (void)checkFirmwareUpdateWithCompletion:
        (nonnull ESTObjectCompletionBlock)completion;

    Swift

    func checkFirmwareUpdate(completion: @escaping ESTObjectCompletionBlock)

    Parameters

    completion

    Blocked invoked when validation is complete.

  • Allows to perform firmware update of the device Over The Air. Keep in mind that established bluetooth connection is required to perform firmware update.

    Declaration

    Objective-C

    - (void)updateFirmwareWithProgress:
                (nonnull ESTDeviceFirmwareUpdateProgressBlock)progress
                            completion:(nonnull ESTCompletionBlock)completion;

    Swift

    func updateFirmware(progress: @escaping ESTDeviceFirmwareUpdateProgressBlock, completion: @escaping ESTCompletionBlock)

    Parameters

    progress

    Block invoked on firmware update progress.

    completion

    Block invoked on firmware update complete.