I am trying to use the RxAndroidBle lib (https://github.com/Polidea/RxAndroidBle). I want the app the start and scan for BLE devices. I want to print the found devices in the LogCat. How can I do this?
RxBleClient rxBleClient;
RxBleScanResult rxBleScanResult;
private Subscription scanSubscription;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
rxBleClient = RxBleClient.create(this);
Subscription scanSubscription = rxBleClient.scanBleDevices().subscribe(
rxBleScanResult.getBleDevice().getMacAddress());
}