private boolean isNotValid(final long max, final int unknownValue) {
        return value == unknownValue || value < 0 || value > max;
    }
TimeSecond 8, 16, 32 characteristic

@param timeSecond time in seconds
mesh/src/main/java/no/nordicsemi/android/mesh/sensorutils/TimeSecond.java