public static boolean isValidParameters(final byte[] parameters) throws IllegalArgumentException {
        if (parameters != null && parameters.length > 379)
            throw new IllegalArgumentException("Invalid parameters, parameters must be 0-379 octets");

        return true;
    }
Checks if the parameters are within the valid range

@param parameters opCode of mesh message
@return if the opcode is valid
mesh/src/main/java/no/nordicsemi/android/mesh/utils/MeshParserUtils.java