Get V3 HR mode
Function table
__IDO_FUNCTABLE__.funcTable22Model.v3HrData
V3 HR Mode Model description
- IDOSetV3HeartRateModeBluetoothModel
Parameter | Description | Notes |
---|---|---|
modeType | Heart rate mode | Heart rate mode 0: Disable heart rate monitoring function (inactive) 1: Manual mode (disable automatic) 2: Automatic mode (5 minutes) 3: Continuous monitoring (5 seconds) (default: automatic mode) 4: Default type (used for the first binding synchronization configuration, used by C library) 5: Set the corresponding measurement interval (setting Corresponding measurement_interval) select 4 and 5 modes, then 2 and 3 modes are invalid 6: Intelligent heart rate mode (206 wal custom) |
updateTime | update time | str |
isHasTimeRange | is has time range | str |
startHour | start (hour) | int |
startMinute | start (minute) | int |
endHour | 结束 (时) | int |
endMinute | end (minute) | int |
measurementInterval | measurement interval | unit:second, modeType == 5 only effective |
notifyFlag | notify flag | 0 is invalid; 1: allow notifications; 2: silent notifications; 3: turn off notifications (Need to support menu__ IDO_ FUNCTABLE__ FuncTable34Model. supportHrHighOrLowBtAlarm can only be configured with notifyFlag, highHeartMode, highHeartValue, lowHeartMode, and lowHeartValue) |
highHeartMode | Intelligent high heart rate reminder switch | bool |
lowHeartMode | smart high heart rate reminder switch | bool |
highHeartValue | Smart Heart Rate High Alert Threshold | int |
lowHeartValue | Smart low heart rate reminder threshold | int |
getSecondMode | Support second-level heart rate | bool only get valid |
hrModeTypes | Get the collection of heart rate types supported by the watch | 5s,60s,180s,300s,600s,1800s,smart heart rate (255s), 900s are only valid |
Command code
Objc:
[IDOFoundationCommand getV3HrModeInfoCommand:^(int errorCode, IDOSetV3HeartRateModeBluetoothModel * _Nullable data) {
if (errorCode == 0) {
//get success
}else if (errorCode == 6) {
//device not supported
}else {
//get failed
}
}];
Swift:
IDOFoundationCommand.getV3HrModeInfoCommand{ (errorCode, model) in
if errorCode == 0 {
//get success
}else if errorCode == 6 {
//device not supported
}else {
//get failed.
}
};