Get Realtime data
Function table
__IDO_FUNCTABLE__.funcTable4Model.realtimeData
Realtime data model description
- IDOGetLiveDataBluetoothModel
Parameter | Description | Notes |
---|---|---|
step | Step | int |
calories | Calories | int |
distances | distance | int |
activeTime | Activity duration | int |
heartRate | Heart rate | int |
Command code
Objc:
[IDOFoundationCommand getLiveDataCommand:^(int errorCode, IDOGetLiveDataBluetoothModel * _Nullable data) {
if (errorCode == 0) {
//get success
}else if (errorCode == 6) {
//device not supported
}else {
//get failed
}
}];
Swift:
IDOFoundationCommand.getLiveDataCommand { (errorCode, model) in
if errorCode == 0 {
//get success
}else if errorCode == 6 {
//device not supported
}else {
//get failed.
}
};