public static int decodeNetworkTransmissionInterval(final int interval) {
        if ((interval >= 10 && interval <= 320) && (interval % 10 != 0))
            throw new IllegalArgumentException("Network Transmission Interval must be 10-320 ms with a step of 10 ms");
        return (interval / 10) - 1;
    }
Decodes the Network Transmission Interval steps

@param interval Interval between 10-320 ms with a step of 10 ms
@return the interval as steps
@throws IllegalArgumentException if the Network Transmission Interval is not 10-320 ms with a
                                 step of 10 ms
mesh/src/main/java/no/nordicsemi/android/mesh/utils/NetworkTransmitSettings.java