V3 heart rate data query
parameter explanation
- IDOSyncSecHrDataItemInfoBluetoothModel
| parameter | explanation | remarks |
|---|---|---|
| offset | Sub time offset | int (Company:minute) |
| hrValue | Heart rate value | int |
| dateStr | time stamp Accurate to date | str |
| serialNumber | serialNumber | int |
- IDOSyncSecHrDataInfoBluetoothModel
| parameter | explanation | remarks |
|---|---|---|
| itemsCount | Number of heart rate packets | int |
| secondOffset | Total time offset | int (unit:second) |
| silentHeartRate | Resting heart rate | int |
| burnFatThreshold | Fat burning threshold | int |
| aerobicThreshold | Muscle exercise threshold | int |
| limitThreshold | Limit threshold | int |
| burnFatMins | Fat burning hour length | int (unit :minute) |
| aerobicMins | Muscle exercise hour long | int (unit :minute) |
| limitMins | Extreme sports hour length | int (unit :minute) |
| userMaxHr | User maximum heart rate | int |
| userAvgHr | User average heart rate | int |
| warmUpThreshold | Warm up threshold | int |
| warmUpMins | Warm up exercise hour room | int (unit :minute) |
| anaerobicThreshold | Anaerobic exercise threshold | int |
| anaerobicMins | Anaerobic exercise room | int (unit :minute) |
| year | year | int |
| month | month | int |
| day | day | int |
| heartRates | Heart rate collection | array (IDOSyncHrDataItemInfoBluetoothModel) |
| minutesHrDic | 5minute interval heart rate set | @{@"total_offset":@(0),@"heart_rates":@[@{@"offset":@(0),@"value":@(0)}...]}; |
| heightLowHrItems | High and low heart rate set | @[@{@"hour":@(hour),@"minute":@(minute), @"type":@(type:0: heart rate value of hour with low heart rate 0: heart rate value of hour when heart rate is too high),@"hr_value":@(hr_value)}]; |
| dateStr | time stamp Accurate to date | str |
| firstOffset | First synchronization start total offset | int (Discard) |
Query heart rate by year
Objc:
//parameter:Year, MAC address、Query details
[IDOSyncHeartRateDataModel queryOneYearSecHearRatesWithYear:year
macAddr:macAddr
isQueryItems:NO];
Swift:
//parameter:Year, MAC address、Query details
IDOSyncHeartRateDataModel.queryOneYearSecHearRates(withYear: year, macAddr:macAddr, isQueryItems: false);
Query heart rate by month
Objc:
//parameter:year、month、MAC address、Query details
[IDOSyncHeartRateDataModel queryOneMonthSecHearRatesWithYear:year
month:month
macAddr:macAddr
datesOfMonth:&days
isQueryItems:NO];
Swift:
//parameter:year、month、MAC address、Query details
IDOSyncHeartRateDataModel.queryOneMonthSecHearRates(withYear: year, macAddr:macAddr, isQueryItems: false);
Query heart rate by week
Objc:
//parameter: Week index, week start, MAC address, day collection within the week, query details
[IDOSyncHeartRateDataModel queryOneWeekSecHearRatesWithWeekIndex:week
weekStartDay:0
macAddr:macAddr
datesOfWeek:&days
isQueryItems:NO];
Swift:
//parameter: Week index, week start, MAC address, day collection within the week, query details
IDOSyncHeartRateDataModel.queryOneWeekSecHearRates(withWeekIndex:week, weekStartDay:0, macAddr:macAddr, datesOfWeek:&days, isQueryItems: false);
Query heart rate by day
Objc:
//parameter: Year, month, day, MAC address
[IDOSyncHeartRateDataModel queryOneDaySecHearRatesDetailWithMac:macAddr
year:year
month:month
day:day];
Swift:
//parameter: Year, month, day, MAC address
IDOSyncHeartRateDataModel.queryOneDaySecHearRatesDetail(withMac:macAddr, year:year, month:month, day:day);
Query all heart rates
Objc:
//parameter: MAC address
[IDOSyncHeartRateDataModel queryAllSecHearRatesWithMac:macAddr];
Swift:
//parameter: MAC address
IDOSyncHeartRateDataModel.queryAllSecHearRates(withMac:macAddr);
Query the heart rate of sedation only
Objc:
//parameter: MAC address
[IDOSyncHeartRateDataModel queryAllContractedSecHearRatesWithMac:macAddr];
Swift:
//parameter: MAC address
IDOSyncHeartRateDataModel.queryAllContractedSecHearRates(withMac:macAddr);