Body power data query
parameter explanation
- IDOSyncBodyPowerDataModel
parameter | explain | remarks |
---|---|---|
year | year | int |
month | month | int |
day | day | int |
dateStr | time stamp Accurate to date | str |
startTime | Start time | In seconds, offset based on 0 points |
itemCount | Number of body electricity | int |
bodyPowers | Body power collection | @[{@"offset":@(0),@"value":@(0),@"type":@(0),@"diff_value":@(0)}...] Value: the actually generated value has a decimal value. The firmware return value should multiply the actual value by 100 offset: Based on the time offset of the previous data point (seconds) Type: tag type 0x01: sleep 0x02: relax 0x03: exercise 0x04 activity 0x05:pressure diff_vDifference from previous Value the difference between the previous value |
Query body power by year
Objc:
//Parameter: year, MAC address
[IDOSyncBodyPowerDataModel queryOneYearBodyPowerWithYear:year
macAddr:macAddr];
Swift:
//Parameter: year, MAC address
IDOSyncBodyPowerDataModel.queryOneYearBreathRate(withYear: year, macAddr: macAddr);
Query body power by month
Objc:
//Parameters: year, month, MAC address, date set in month
[IDOSyncBodyPowerDataModel queryOneMonthBodyPowerWithYear:year
month:month
macAddr:macAddr
datesOfMonth:&days];
Swift:
//Parameters: year, month, MAC address, date set in month
IDOSyncBodyPowerDataModel.queryOneMonthBodyPower(withYear:year, month:month, macAddr:macAddr, datesOfMonth:&days);
Query body power by week
Objc:
//Parameters: Week index, week start, MAC address, day of the week collection
[IDOSyncBodyPowerDataModel queryOneWeekBodyPowerWithWeekIndex:week
weekStartDay:0
macAddr:macAddr
datesOfWeek:&days];
Swift:
//Parameters: Week index, week start, MAC address, day of the week collection
IDOSyncBodyPowerDataModel.queryOneWeekBodyPower(withWeekIndex:week, weekStartDay:0, macAddr:macAddr, datesOfWeek:&days);
Query body power by day
Objc:
//parameter: Year, month, day, MAC address
[IDOSyncBodyPowerDataModel queryOneDayBodyPowerDetailWithMac:macAddr
year:year
month:month
day:day];
Swift:
//parameter: Year, month, day, MAC address
IDOSyncBodyPowerDataModel.queryOneDayBodyPowerDetail(withMac:macAddr, year:year, month:month, day:day);
Query all body power
Objc:
//parameter: MAC address
[IDOSyncBodyPowerDataModel queryAllBodyPowerWithMac:macAddr];
Swift:
//parameter: MAC address
IDOSyncBodyPowerDataModel.queryAllBodyPower(withMac:macAddr);