public boolean removeTimer(VacuumTimer timer) throws CommandExecutionException {
        if (timer == null) throw new CommandExecutionException(CommandExecutionException.Error.INVALID_PARAMETERS);
        JSONArray payload = new JSONArray();
        payload.put(timer.getID());
        return sendOk("del_timer", payload);
    }
public boolean removeTimer ( VacuumTimer timer ) throws CommandExecutionException { if ( timer == null ) throw new CommandExecutionException ( CommandExecutionException . Error . INVALID_PARAMETERS ) ; JSONArray payload = new JSONArray ( ) ; payload . put ( timer . getID ( ) ) ; return sendOk ( "del_timer" , payload ) ; }
Delete a scheduled cleanup.
@param timer The timer to remove.
@return True if the command was received successfully.
@throws CommandExecutionException When there has been a error during the communication or the response was invalid.