V2 activity data query

Model explanation

IDOSyncActivityDataInfoBluetoothModel

parameter explanation remarks
year particular year int
month month int
day date int
hour Hour int
minute branch int
second second int
dateStr date Accurate to date str
timeStr start time Accurate to seconds str
dataLength Data length int
hrInterval Heart rate data generation interval int (Company : s)
hrItemCount Number of heart rate data int
packetCount Total number of packages int
type Joints 0x01:walk, 0x02:run, 0x03:Riding 0x04:on foot
Only these types have track motion
step Number of steps( When Riding, the number of steps is 0) int
durations Duration int (Company:s)
calories calorie int (Company:Kcal)
distance distance int (Company: rice)
avgHrValue Mean heart rate int
maxHrValue Maximum heart rate int
burnFatMins Fat burning time int
aerobicMins Cardiopulmonary exercise duration [Aerobic exercise duration] int (minute)
limitMins Extreme exercise duration int (minute)
anaerobicMins Duration of anaerobic exercise int (minute)
warmUpMins warm up time int (minute)
hrValuesStr Heart rate set with serial number (JSON string) str
isSave Need to save data (For data exchange) bool
startFrom Motion initiator (1 : Bracelet initiation 0 : App initiation) int

Query activity by timestamp

Objc:

//Parameter timestamp, MAC address
[IDOSyncActivityDataModel queryOneActivityDataWithTimeStr:timeStr                                  
                                                   macAddr:macAddr];

Swift:

//Parameter timestamp, MAC address
IDOSyncActivityDataModel.queryOneActivityData(withTimeStr:timeStr, macAddr: macAddr);

Query activities by day

Objc:

//Parameter year, month, day, MAC address
[IDOSyncActivityDataModel queryOneDayActivityDataWithMacAddr:macAddr
                                                          year:year                                                                                              
                                                         month:month                                                                                       
                                                           day:day];

Swift:

//Parameter year, month, day, MAC address
IDOSyncActivityDataModel.queryOneDayActivityData(withMacAddr:macAddr, year:year,month:month,day:day);

Query activities by month

Objc:

//Parameter year, month, MAC address
[IDOSyncActivityDataModel queryOneMonthActivityDataWithMacAddr:macAddr
                                                          year:year                                                                                              
                                                         month:month];

Swift:

//Parameter year, month, MAC address
IDOSyncActivityDataModel.queryOneMonthActivityData(withMacAddr:macAddr, year:year,month:month);

Query activities by year

Objc:

//Parameter year, MAC address
[IDOSyncActivityDataModel queryOneYearActivityDataWithMacAddr:macAddr
                                                           year:year];

Swift:

//Parameter year, MAC address
IDOSyncActivityDataModel.queryOneYearActivityData(withMacAddr:macAddr, year:year);

Paged query activity

Objc:

//Parameter number of pages, number of pages per page, MAC address
[IDOSyncActivityDataModel queryOnePageActivityDataWithPageIndex:pageIndex
                                numOfPage:numOfPage 
                                macAddr:macAddr ];

Swift:

//Parameter number of pages, number of pages per page, MAC address
IDOSyncActivityDataModel.queryOnePageActivityData(withPageIndex:pageIndex, numOfPage:numOfPage,macAddr:macAddr);

All track motion

Objc:

//Parameter MAC address
[IDOSyncActivityDataModel queryAllTrajectorySportActivitysWithMac:macAddr];

Swift:

//Parameter MAC address
IDOSyncActivityDataModel.queryAllTrajectorySportActivitys(withMac:macAddr);

All light sports

Objc:

//Parameter MAC address
[IDOSyncActivityDataModel queryAllLightSportActivitysWithMac:macAddr];

Swift:

//Parameter MAC address
IDOSyncActivityDataModel.queryAllLightSportSportActivitys(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 ""