public String getCountLogDescription() {
        if (countLog == 0x00)
            return "Disabled";
        else if (countLog == 0xFF)
            return "Indefinite";
        else if (countLog == 0x01 || countLog == 0x02)
            return String.valueOf(countLog);
        else if (countLog == 0x11) {
            return "0x8001 ... 0xFFFE";
        } else if (countLog >= 0x03 && countLog <= 0x10) {
            final int lowerBound = (int) (Math.pow(2, countLog - 2)) + 1;
            final int upperBound = (int) Math.pow(2, countLog - 1);
            return lowerBound + " ... " + upperBound;
        } else {
            return "Invalid";
        }
    }
Returns true if the heartbeat subscriptions are enabled.
mesh/src/main/java/no/nordicsemi/android/mesh/utils/HeartbeatPublication.java