Respiratory rate data query

parameter explanation

  • IDOSyncBreathRateDataModel
parameter explanation remarks
year year int
month month int
day day int
dateStr time stamp(accurate to date) str
itemCount itemCount int
breathRates Respiratory rate collection @[{@"offset":@(0),@"value":@(0)}...]
Value: respiratory rate
offset: each is based on 0 point offset (seconds)

Query respiratory rate by year

Objc:

//parameter:Year, MAC address
[IDOSyncBreathRateDataModel queryOneYearBreathRateWithYear:year                                  
                                          macAddr:macAddr];

Swift:

//parameter:Year, MAC address
IDOSyncBreathRateDataModel.queryOneYearBreathRate(withYear: year, macAddr: macAddr);

Query respiratory rate by month

Objc:

//parameter:year、month、MAC address、day collection within the month
[IDOSyncBreathRateDataModel queryOneMonthBreathRateWithYear:year                                     
                                             month:month 
                                           macAddr:macAddr 
                                           datesOfMonth:&days];

Swift:

//parameter:year、month、MAC address、day collection within the month
IDOSyncBreathRateDataModel.queryOneMonthBreathRate(withYear:year, month:month, macAddr:macAddr, datesOfMonth:&days);

Query respiratory rate by week

Objc:

//parameter: Week index, week start, MAC address, day collection within the week
[IDOSyncBreathRateDataModel queryOneWeekBreathRateWithWeekIndex:week
                                            weekStartDay:0                                                             
                                                 macAddr:macAddr                                                           
                                             datesOfWeek:&days];

Swift:

//parameter: Week index, week start, MAC address, day collection within the week
IDOSyncBreathRateDataModel.queryOneWeekBreathRate(withWeekIndex:week, weekStartDay:0, macAddr:macAddr, datesOfWeek:&days);

Query respiratory rate by day

Objc:

//parameter: Year, month, day, MAC address
[IDOSyncBreathRateDataModel queryOneDayBreathRateDetailWithMac:macAddr                                                                                                             
                                                year:year                                                                    
                                               month:month 
                                                 day:day];

Swift:

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

Query all respiration rates

Objc:

//parameter: MAC address
[IDOSyncBreathRateDataModel queryAllBreathRateWithMac:macAddr];

Swift:

//parameter: MAC address
IDOSyncBreathRateDataModel.queryAllBreathRate(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 ""