Get Over-Heat Log
Function table
__IDO_FUNCTABLE__.funcTable29Model.getHeatLog
Over-Heat Log model Description
- IDOGetOverHeatLogModel
Parameter | Description | Notes |
---|---|---|
verionNum | The version number of the message | int |
devRunTime | total device running time | Unit: second |
ppgRunTime | ppg sensor working time | Unit: second |
chargingTimes | Charge times | Unit: times |
errFlag | The set of reasons for the exception | 0: Voltage drop too fast, 1: ppg sensor communication failed, 2: ppg sensor returns abnormal data |
year | 年 | int |
month | Month | int |
day | Day | int |
hour | Hour | int |
minute | 分 | int |
second | Second | int |
Command code
Objc:
[IDOFoundationCommand getOverHeatLogInfoCommand:^(int errorCode, IDOGetOverHeatLogModel * _Nullable data) {
if (errorCode == 0) {
//get success
}else if (errorCode == 6) {
//device not supported
}else {
//get failed
}
}];
Swift:
IDOFoundationCommand.getOverHeatLogInfoCommand{ (errorCode, model) in
if errorCode == 0 {
//get success
}else if errorCode == 6 {
//device not supported
}else {
//get failed.
}
};