身体电量数据查询

参数说明

  • IDOSyncBodyPowerDataModel
参数 说明 备注
year int
month int
day int
dateStr 时间戳 精确到日期 str
startTime 起始时间 单位秒,基于0点的偏移
itemCount 身体电量个数 int
bodyPowers 身体电量集合 @[{@"offset":@(0),@"value":@(0),@"type":@(0),@"diff_value":@(0)}...]
value:实际产生值 有小数 固件返回值应将实际值乘以100
offset :基于前一个数据点时间偏移量 (秒钟)
type : 标签类型 0x01:睡眠 0x02:放松 0x03:锻炼 0x04活动 0x05:压力
diff_value : 相对于上一个值的差值

按年查询身体电量

Objc:

//参数:年、Mac地址
[IDOSyncBodyPowerDataModel queryOneYearBodyPowerWithYear:year                                  
                                          macAddr:macAddr];

Swift:

//参数:年、Mac地址
IDOSyncBodyPowerDataModel.queryOneYearBreathRate(withYear: year, macAddr: macAddr);

按月查询身体电量

Objc:

//参数:年、月、Mac地址、月份内的日期集合
[IDOSyncBodyPowerDataModel queryOneMonthBodyPowerWithYear:year                                     
                                             month:month 
                                           macAddr:macAddr 
                                           datesOfMonth:&days];

Swift:

//参数:年、月、Mac地址、月份内的日期集合
IDOSyncBodyPowerDataModel.queryOneMonthBodyPower(withYear:year, month:month, macAddr:macAddr, datesOfMonth:&days);

按周查询身体电量

Objc:

//参数: 星期索引、星期开始、Mac地址、星期内日期集合
[IDOSyncBodyPowerDataModel queryOneWeekBodyPowerWithWeekIndex:week
                                            weekStartDay:0                                                             
                                                 macAddr:macAddr                                                           
                                             datesOfWeek:&days];

Swift:

//参数: 星期索引、星期开始、Mac地址、星期内日期集合
IDOSyncBodyPowerDataModel.queryOneWeekBodyPower(withWeekIndex:week, weekStartDay:0, macAddr:macAddr, datesOfWeek:&days);

按日查询身体电量

Objc:

//参数: 年、月、日、Mac地址
[IDOSyncBodyPowerDataModel queryOneDayBodyPowerDetailWithMac:macAddr                                                                                                             
                                                year:year                                                                    
                                               month:month 
                                                 day:day];

Swift:

//参数: 年、月、日、Mac地址
IDOSyncBodyPowerDataModel.queryOneDayBodyPowerDetail(withMac:macAddr, year:year, month:month, day:day);

查询所有身体电量

Objc:

//参数: Mac地址
[IDOSyncBodyPowerDataModel queryAllBodyPowerWithMac:macAddr];

Swift:

//参数: Mac地址
IDOSyncBodyPowerDataModel.queryAllBodyPower(withMac:macAddr);
Copyright © 2015-2020 IDO. All rights reserved. all right reserved,powered by Gitbook修订时间: 2023-12-18 10:04:13

results matching ""

    No results matching ""