April 2017
Intermediate to advanced
242 pages
6h 10m
English
An interface required delivering the results of LE Scan. You need to implement the method onLeScan() which will return back scanned device, its RSSI (signal strength) and the scan record array. Later this object will be passed to the startLeScan method.
BluetoothAdapter.LeScanCallback leScanCallback = new BluetoothAdapter.LeScanCallback() { @Override public void onLeScan(BluetoothDevice device, int rssi, byte[] scanRecord) { // Do something with the scanned data... } }; startLeScan(leScanCallback);
Read now
Unlock full access