kai-morich / SimpleBluetoothLeTerminal

Android terminal app for Bluetooth LE devices using custom serial profiles
MIT License
288 stars 111 forks source link

Please help on deprecated commands. #26

Closed AmiaSharma closed 3 years ago

AmiaSharma commented 3 years ago

startLeScan and stopLeScan has been deprecated. It needs to be removed from the code and replaced with startScan and stopScan respectively. please help on this.

file: DevicesFragment.java commands: bluetoothAdapter.startLeScan(null, leScanCallback); bluetoothAdapter.stopLeScan(leScanCallback);

Thanks a lot :-) 👍

kai-morich commented 3 years ago

These methods were deprecated a long time ago, but still exist. Nowadays the old methods are wrappers around the more recent BluetoothLeScanner class with old result format. I do not expect the deprecated methods to be removed, so I ignore this (and some other) deprecations until it really is removed.