public String updateStatus ( ) throws CommandExecutionException { String resp = sendToArray ( "miIO.get_ota_state" ) . optString ( 0 , null ) ; if ( resp == null ) throw new CommandExecutionException ( CommandExecutionException . Error . INVALID_RESPONSE ) ; return resp ; }
Request the update status .