How to continuously get RSSI without connecting to the BLE device?
问题 My application needs to constantly get RSSI value of a bluetooth device to make some distance-rssi approximation, without connecting . However, callback method of the BluetoothAdapter gets the RSSI only once when the device scanned. // Device scan callback private BluetoothAdapter.LeScanCallback leScanCallback = new BluetoothAdapter.LeScanCallback() { @Override public void onLeScan(final BluetoothDevice device, final int rssi, byte[] scanRecord) { runOnUiThread(new Runnable() { public void