Set exercise sorting

Motion Ranking Model Description

  • IDOSetSportSortingInfoBluetoothModel
Parameter Description Remark
sportSortingItems Sport Mode Sorted Collection Sport Mode Sorted Collection Up to 8 or 14 or 30 or 150
operat Operation Type 0: invalid; 1 Inquire; 2 set up (no assignment required)
allNum Number int
currentIndex Index of currently added sport types int supports 100 kinds of sports only need to assign value
  • IDOSetSportSortingItemModel
Paremeter Description Remark
index Sort index 从1、2、3、4....,0:Invalid
type Sport mode

当功能表 v3SportsType、set100SportSort Support, motion type starts from 48, 1-29 motion type is v2 protocol

refer to the IDOSportTypes file description for motion types

Command code

Objc:

IDOSetSportSortingInfoBluetoothModel * model = [IDOSetSportSortingInfoBluetoothModel currentModel];
[IDOFoundationCommand setSportModeSortCommand:model
                                callback:^(int errorCode) {
    if (errorCode == 0) {
       //Set successfully
    }else if (errorCode == 6) {
      //Device not supported
    }else {
      //Setup failed
    }
}];

Swift:

let model = IDOSetSportSortingInfoBluetoothModel.current();
IDOFoundationCommand.setSportModeSort(model) { (errorCode) in
     if errorCode == 0 {
        //Set successfully
     }else if errorCode == 6{
        //Device does not support this method
     }else {
       //Wrong setting
     }
};
Copyright © 2015-2020 IDO. All rights reserved. all right reserved,powered by GitbookModify Date: 2023-12-18 10:04:13

results matching ""

    No results matching ""