Blood oxygen data query

Parameter description

  • IDOSyncBloodOxygenItemInfoBluetoothModel
parameter explain remarks
dateStr date str
offset Sub time offset int (second)
spo2Val Blood oxygen value int
serialNumber serialNumber int
  • IDOSyncBloodOxygenDataInfoBluetoothModel
parameter explain remarks
year particular year int
month month int
day date int
dateStr date Accurate to date str
minuteOffset Total time offset str (second)
itemsCount Blood oxygen packet volume int
bloodOxygens Blood oxygen collection array (IDOSyncBloodOxygenItemInfoBluetoothModel)
avgBloodOxygen Mean blood oxygen int
maxBloodOxygen Maximum blood oxygen int
minBloodOxygen Minimum blood oxygen int

Query blood oxygen by year

Objc:

//parameter: Year, MAC address, query details
[IDOSyncSpo2DataModel queryOneYearBloodOxygenWithYear:year                                  
                                              macAddr:macAddr     
                                         isQueryItems:NO];

Swift:

//parameter: Year, MAC address, query details
IDOSyncSpo2DataModel.queryOneYearBloodOxygen(withYear: year, macAddr: macAddr, isQueryItems: false);

Query blood oxygen by month

Objc:

//Parameters: year, month, MAC address, date set in month, query details
[IDOSyncSpo2DataModel queryOneMonthBloodOxygenWithYear:year                                     
                                                 month:month 
                                               macAddr:macAddr 
                                          datesOfMonth:&days
                                          isQueryItems:NO];

Swift:

//Parameters: year, month, MAC address, date set in month, query details
IDOSyncSpo2DataModel.queryOneMonthBloodOxygen(withYear:year, month:month, macAddr:macAddr, datesOfMonth:&days, isQueryItems:false);

Query blood oxygen by week

Objc:

//Parameters: Week index, week start, MAC address, day of the week collection, query details
[IDOSyncSpo2DataModel queryOneWeekBloodOxygenWithWeekIndex:week
                                              weekStartDay:0                                                             
                                                   macAddr:macAddr                                                           
                                               datesOfWeek:&days                                                 
                                              isQueryItems:NO];

Swift:

//Parameters: Week index, week start, MAC address, day of the week collection, query details
IDOSyncSpo2DataModel.queryOneWeekBloodOxygen(withWeekIndex:week, weekStartDay:0, macAddr:macAddr, datesOfWeek:&days, isQueryItems: false);

Query blood oxygen by day

Objc:

//Parameters: year, month, day, MAC address
[IDOSyncSpo2DataModel queryOneDayBloodOxygenDetailWithMac:macAddr                                                                                                             
                                                     year:year                                                                    
                                                    month:month 
                                                      day:day];

Swift:

//Parameters: year, month, day, MAC address
IDOSyncSpo2DataModel.queryOneDayBloodOxygenDetail(withMac:macAddr, year:year, month:month, day:day);

Query all blood oxygen

Objc:

//Parameter: MAC address
[IDOSyncSpo2DataModel queryAllBloodOxygensWithMac:macAddr];

Swift:

//Parameter: MAC address
IDOSyncSpo2DataModel.queryAllBloodOxygens(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 ""