Swimming data query
parameter explanation
- IDOSyncSwimItemDataInfoBluetoothModel
parameter | explanation | remarks |
---|---|---|
timeStr | Start hour | Hour timestamp Accurate to second |
duration | Continuous hour | int |
activeTime | Active hour room | int (second) |
strokesNumber | Number of strokes | int |
swolf | Comment minute | int |
serialNumber | serialNumber | int |
swimmingPosture | Every stroke | 0x00: medley< Br> 0x01: freestyle; 0x02 : Breaststroke; 0x03 : backstroke; 0x04 : butterfly; |
distance | Distance per trip | unit: metre |
frequency | frequency | int |
speed | Pace | int |
stopTime | End hour | int |
differenceTime | Rest room between 2 trips | int |
- IDOSyncSwimmingDataInfoBluetoothModel
parameter | explanation | remarks |
---|---|---|
year | year | int |
month | month | int |
day | day | int |
hour | hour | int |
minute | minute | int |
second | second | int |
dateStr | time stamp Accurate to date | str |
timeStr | Start hour | str |
type | Swimming type | 0x00:invalid, 0x01:Indoor swimming, 0x02:Open water swimming |
calories | calorie | int (unit: kcal) |
distance | distance | int (unit: metre) |
trips | Number of swimming trips | int |
averageSwolf | average swolf | int |
totalStrokesNumber | Total strokes | int |
swimmingPosture | Main stroke | 0x00 : Medley; 0x01 : free style; 0x02 : Breaststroke; 0x03 : backstroke; 0x04 : butterfly |
poolDistance | Pool distance | int (unit:cm) |
itemsCount | Swimming packet volume | int |
swimmingItems | Swimming assembly | array (IDOSyncSwimItemDataInfoBluetoothModel) |
confirmDistance | User confirmed distance | int |
duration | Swimming duration hourduration hour | int (unit:minute) |
avgSpeed | Average pace | int |
avgFrequency | Average stroke frequency | int |
swimVersion | Swimming data version number | int |
Query a piece of swimming data
Objc:
//parameter:time mark、MAC address
[IDOSyncSwimDataModel querySwimDataWithTimeStr:timeStr
macAddr:macAddr];
Swift:
//parameter:time mark、MAC address
IDOSyncSwimDataModel.querySwimData(withTimeStr: timeStr, macAddr: macAddr);
Query one-day swimming data
Objc:
//parameter:date mark、MAC address、Query details
[IDOSyncSwimDataModel querySwimDataWithDateStr:dateStr
macAddr:macAddr
isQueryItems:NO];
Swift:
//parameter:date mark、MAC address、Query details
IDOSyncSwimDataModel.querySwimData(withDateStr:dateStr, macAddr:macAddr,isQueryItems:false);
Query all swimming data
Objc:
//parameter:MAC address
[IDOSyncSwimDataModel queryAllSwimDataWithMacAddr:macAddr];
Swift:
//parameter:MAC address
IDOSyncSwimDataModel.queryAllSwimData(withMacAddr:macAddr);