public static SensorFormat from(final byte format) {
        switch (format) {
            case 0x00:
                return FORMAT_A;
            case 0x01:
                return FORMAT_B;
            default:
                throw new IllegalArgumentException("Unknown Format");
        }
    }
The Format field is a 1-bit bit field that identifies the format of the Length and Property ID fields of Sensor Data
mesh/src/main/java/no/nordicsemi/android/mesh/utils/SensorFormat.java