Skip to content

Commit 5b34e20

Browse files
committed
Fix uuid bug in startScan18.
1 parent dd66653 commit 5b34e20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/com/pauldemarco/flutterblue/FlutterBluePlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ private void startScan18(Protos.ScanSettings proto) throws IllegalStateException
679679
List<String> serviceUuids = proto.getServiceUuidsList();
680680
UUID[] uuids = new UUID[serviceUuids.size()];
681681
for(int i = 0; i < serviceUuids.size(); i++) {
682-
uuids[0] = UUID.fromString(serviceUuids.get(0));
682+
uuids[i] = UUID.fromString(serviceUuids.get(i));
683683
}
684684
boolean success = mBluetoothAdapter.startLeScan(uuids, getScanCallback18());
685685
if(!success) throw new IllegalStateException("getBluetoothLeScanner() is null. Is the Adapter on?");

0 commit comments

Comments
 (0)