projects/positioning/app/src/main/java/io/v/positioning/ble/BleScanner.java
// Start and stop scanning and a callback that has to be shared for identification
Start and stop scanning and a callback that has to be shared for identification
Start and stop scanning and a callback that has to be shared for identification
public void startScan() {
        ParcelUuid uuidPositioning = ParcelUuid.fromString(BleAdvertiser.UUID);
        ScanFilter scanFilter = new ScanFilter.Builder().setServiceUuid(uuidPositioning).build();
        mFilters.add(scanFilter);
        ScanSettings mSettings = new ScanSettings.Builder().setReportDelay(0)
                .setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY).build();
        mBluetoothLeScanner.startScan(mFilters, mSettings, mScanCallback);
    }
public void startScan ( ) { ParcelUuid uuidPositioning = ParcelUuid . fromString ( BleAdvertiser . UUID ) ; ScanFilter scanFilter = new ScanFilter . Builder ( ) . setServiceUuid ( uuidPositioning ) . build ( ) ; mFilters . add ( scanFilter ) ; ScanSettings mSettings = new ScanSettings . Builder ( ) . setReportDelay ( 0 ) . setScanMode ( ScanSettings . SCAN_MODE_LOW_LATENCY ) . build ( ) ; mBluetoothLeScanner . startScan ( mFilters , mSettings , mScanCallback ) ; }
Start and stop scanning and a callback that has to be shared for identification
Start and stop scanning and a callback that has to be shared for identification