public Short getPeriodLog2Period(final int periodLog) {
        if (periodLog == 0x00)
            return 0x0000;
        else if (periodLog >= 0x01 && periodLog <= 0x10) {
            return (short) (Math.pow(2, periodLog - 1));
        } else return (short) 0xFFFF;
    }
Returns true if the heartbeat subscriptions are enabled.
mesh/src/main/java/no/nordicsemi/android/mesh/utils/HeartbeatPublication.java