Xsens DOT iOS SDK  ©2022 Xsens Technologies - Version: 2022.0.0
<XsesnDotOtaManagerDelegate> Protocol Reference

#import <XsensDotOtaManager.h>

Inheritance diagram for <XsesnDotOtaManagerDelegate>:

Instance Methods

(void) - onOtaRollback:result:version:releaseNotes:
 
(void) - onOtaUpdates:result:version:releaseNotes:
 
(void) - onOtaFileMismatch:
 
(void) - onOtaUncharged:
 
(void) - onOtaDownload:version:
 
(void) - onOtaStart:result:errorCode:
 
(void) - onOtaProgress:progress:errorCode:
 
(void) - onOtaEnd:result:errorCode:
 

Detailed Description

The OTA control manager The XsensDotManager delegate that can update all the status during the whole OTA process

Method Documentation

◆ onOtaDownload:version:

- (void) onOtaDownload: (NSString *)  address
version: (NSString *)  version 
optional

When call checkOtaRollbackAndDownload or checkOtaUpdatesAndDownload and the firmeare has been downloaded ,this method will be triggered.

Parameters
addressThe XsensDotDevice mac address
versionThe firmware version

◆ onOtaEnd:result:errorCode:

- (void) onOtaEnd: (NSString *)  address
result: (BOOL)  result
errorCode: (int)  errorCode 
optional

This method will be triggered after OTA finished or call stopOta

Parameters
addressThe XsensDotDevice mac address
resultThe OTA finished result
errorCodeThe error code (0 indicate had no errors)

◆ onOtaFileMismatch:

- (void) onOtaFileMismatch: (NSString *)  address
optional

When call startOta and the firmware file is not match the DOT, this method will be triggered.

Parameters
addressThe XsensDotDevice mac address

◆ onOtaProgress:progress:errorCode:

- (void) onOtaProgress: (NSString *)  address
progress: (float)  progress
errorCode: (int)  errorCode 
optional

This method will be triggered after call startOta

Parameters
addressThe XsensDotDevice mac address
progressThe progress while doing OTA
errorCodeThe error code (0 indicate had no errors)

◆ onOtaRollback:result:version:releaseNotes:

- (void) onOtaRollback: (NSString *)  address
result: (BOOL)  result
version: (NSString *)  version
releaseNotes: (NSString *)  releaseNotes 
optional

When call checkOtaRollback or checkOtaRollbackAndDownload this method will be triggered.

Parameters
addressThe XsensDotDevice mac address
resultThe rollback result
versionThe firmeare version
releaseNotesThe firmware release notes

◆ onOtaStart:result:errorCode:

- (void) onOtaStart: (NSString *)  address
result: (BOOL)  result
errorCode: (int)  errorCode 
optional

This method will be triggered after call startOta

Parameters
addressThe XsensDotDevice mac address
resultThe start result
errorCodeThe error code (0 indicate had no errors)

◆ onOtaUncharged:

- (void) onOtaUncharged: (NSString *)  address
optional

When call startOta and the sensor is not charging , this method will be triggered.

Parameters
addressThe XsensDotDevice mac address

◆ onOtaUpdates:result:version:releaseNotes:

- (void) onOtaUpdates: (NSString *)  address
result: (BOOL)  result
version: (NSString *)  version
releaseNotes: (NSString *)  releaseNotes 
optional

When call checkOtaUpdates or checkOtaUpdatesAndDownload this method will be triggered.

Parameters
addressThe XsensDotDevice mac address
resultThe update result
versionThe firmeare version
releaseNotesThe firmware release notes

The documentation for this protocol was generated from the following file: