public static byte decodeHeartbeatPeriod(final int period) {
        switch (period) {
            case 0x0000:
                return 0x00;
            case 0xFFFF:
                return 0x11;
            default:
                return log2(period);
        }
    }
Decodes the period and returns the period log value

@param period period value
mesh/src/main/java/no/nordicsemi/android/mesh/utils/Heartbeat.java