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.
}
};