@Override
 public void onScanResult(int callbackType, ScanResult result) {
   Log.i("callbackType", String.valueOf(callbackType));
   Log.i("result", result.toString());
   BluetoothDevice btDevice = result.getDevice();
   connectToDevice(btDevice);
 }
 @Override
 public void onBatchScanResults(List<ScanResult> results) {
   for (ScanResult sr : results) {
     Log.i("ScanResult - Results", sr.toString());
   }
 }