Get OTA Authorization

Authorization Status description

Parameter Description Notes
stateCode Authorization status 0x00: Verification successful, 0x01: ID verification failed,
0x02: Version verification failed, 0x03: Low battery,
0x04: Other errors

Command code

Objc:

[IDOFoundationCommand getOtaAuthInfoCommand:^(int errorCode, int stateCode) {
    if (errorCode == 0) {
       //get success
    }else if (errorCode == 6) {
       //device not supported
    }else {
       //get failed
    }
}];

Swift:

IDOFoundationCommand.getOtaAuthInfoCommand { (errorCode, stateCode) 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 ""