Get sport mode Ranking

Function table

__IDO_FUNCTABLE__.funcTable28Model.v3SportsType

Sports mode Ranking Model Description

  • IDOSetSportSortingInfoBluetoothModel
Parameter Description Notes
sportSortingItems Sports Mode Sorted Collection Sports Mode Sorted Collection Up to 8 or 14 or 30 or 150
operat Operation type 0:invalid; 1Inquire; 2set (no assignment required)
allNum number int
currentIndex The index of the currently added sport type int Support 100 kinds of sports only need to assign value
  • IDOSetSportSortingItemModel
Parameter Description Notes
index Sort index from1、2、3、4....,0:invalid
type sport mode

when the menu v3SportsType、set100SportSort support,sport mode starts at 48,1-29sport mode is v2 protocol

refer to the IDOSportTypes file description for motion types

Command code

Objc:

[IDOFoundationCommand get100SportModeSortCommand:^(int errorCode, IDOSetSportSortingInfoBluetoothModel * _Nullable data) {
    if (errorCode == 0) {
       //get success
    }else if (errorCode == 6) {
       //device not supported
    }else {
       //get failed
    }
}];

Swift:

IDOFoundationCommand.get100SportModeSortCommand { (errorCode, model) in
    if errorCode == 0 {
        //get success
    }else if errorCode == 6 {
       //device not supported
    }else {
       //get failed.                                                                                                                                                                                                                                     
    }
};
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 ""