Get Error log

Function table

__IDO_FUNCTABLE__.funcTable26Model.flashLog

Error log model Description

  • IDOGetErrorLogBluetoothModel
Parameter Description Notes
type Operation type 0x00: query, 0x01: clear record
resetFlag reset flag 0x0: Normal, 0x01: Hard Error, 0x02: Watchdog Service,
0x03: Assertion Reset, 0x04: Power Down Service, 0x05: Other Exceptions,
This parameter does not need to be assigned a value
hwError hardware error code 0x00: normal, 0x01: acceleration error,
0x02: Heart rate error, 0x03: TP error,
0x04: flash error,
This parameter does not need to be assigned a value

Command code

Objc:

IDOGetErrorLogBluetoothModel * model = [[IDOGetErrorLogBluetoothModel alloc]init];
model.type = 0x00;
[IDOFoundationCommand getErrorLogRecordCommand:model callback:^(int errorCode, IDOGetErrorLogBluetoothModel * _Nullable model) {
    if (errorCode == 0) {
       //get success
    }else if (errorCode == 6) {
       //device not supported
    }else {
       //get failed
    }
}];

Swift:

let model = IDOGetErrorLogBluetoothModel.init();
model.type = 0x00;
IDOFoundationCommand.getErrorLogRecord(model) { (errorCode, model) in
    if errorCode == 0 {
        //get success
    }else if errorCode == 6 {
       //device not supported
    }else {
       //get failed.                                                                                                                                                                                                                                        
    }
};
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 ""