V2 heart rate data query

parameterexplain

  • IDOSyncHrDataItemInfoBluetoothModel
parameter explanation remarks
offset Sub time offset int (Company:minute)
data Heart rate value int
dateStr time stamp Accurate to date str
serialNumber serialNumber int
  • IDOSyncHrDataInfoBluetoothModel
parameter explanation remarks
itemsCount Number of heart rate packets int
minuteOffset Total time offset int (unit:minute)
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
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)
dateStr time stamp(accurate to date) str

Query heart rate by year

Objc:

//parameter:Year, MAC address、Query details
[IDOSyncHeartRateDataModel queryOneYearHearRatesWithYear:year                                  
                                                 macAddr:macAddr     
                                            isQueryItems:NO];

Swift:

//parameter:Year, MAC address、Query details
IDOSyncHeartRateDataModel.queryOneYearHearRates(withYear: year, macAddr:macAddr, isQueryItems: false);

Query heart rate by month

Objc:

//parameter:year、month、MAC address、Query details
[IDOSyncHeartRateDataModel queryOneMonthHearRatesWithYear:year                                     
                                                    month:month 
                                                  macAddr:macAddr 
                                             datesOfMonth:&days
                                             isQueryItems:NO];

Swift:

//parameter:year、month、MAC address、Query details
IDOSyncHeartRateDataModel.queryOneMonthHearRates(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 queryOneWeekHearRatesWithWeekIndex: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.queryOneWeekHearRates(withWeekIndex:week, weekStartDay:0, macAddr:macAddr, datesOfWeek:&days, isQueryItems: false);

Query heart rate by day

Objc:

//parameter: Year, month, day, MAC address
[IDOSyncHeartRateDataModel queryOneDayHearRatesDetailWithMac:macAddr                                                                                                             
                                                        year:year                                                                    
                                                       month:month 
                                                         day:day];

Swift:

//parameter: Year, month, day, MAC address
IDOSyncHeartRateDataModel.queryOneDayHearRatesDetail(withMac:macAddr, year:year, month:month, day:day);

Query all heart rates

Objc:

//parameter: MAC address
[IDOSyncHeartRateDataModel queryAllHearRatesWithMac:macAddr];

Swift:

//parameter: MAC address
IDOSyncHeartRateDataModel.queryAllHearRates(withMac:macAddr);

Query the heart rate of sedation only

Objc:

//parameter: MAC address
[IDOSyncHeartRateDataModel queryAllContractedHearRatesWithMac:macAddr];

Swift:

//parameter: MAC address
IDOSyncHeartRateDataModel.queryAllContractedHearRates(withMac:macAddr);
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 ""