public boolean resetConsumable(VacuumConsumableStatus.Names consumable) throws CommandExecutionException {
        if (consumable == null) throw new CommandExecutionException(CommandExecutionException.Error.INVALID_PARAMETERS);
        JSONArray params = new JSONArray();
        params.put(consumable.toString());
        return sendOk("reset_consumable", params);
    }
public boolean resetConsumable ( VacuumConsumableStatus . Names consumable ) throws CommandExecutionException { if ( consumable == null ) throw new CommandExecutionException ( CommandExecutionException . Error . INVALID_PARAMETERS ) ; JSONArray params = new JSONArray ( ) ; params . put ( consumable . toString ( ) ) ; return sendOk ( "reset_consumable" , params ) ; }
Reset a vacuums consumable.
@param consumable The consumable to reset
@return True if the consumable has been reset.
@throws CommandExecutionException When there has been a error during the communication or the response was invalid.