private static byte log2(final int period) {
        return (byte) ((Math.log(period) / Math.log(2)) + 1);
    }
Decodes the period and returns the period log value

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