RxBluetooth icon indicating copy to clipboard operation
RxBluetooth copied to clipboard

rxBluetooth.connectAsClient ANR

Open YanYanLun opened this issue 6 years ago • 1 comments

rxBluetooth.connectAsClient ANR

YanYanLun avatar Jan 22 '19 10:01 YanYanLun

Try to change the thread the function run with subscribeOn(Schedulers.io())

mRxBluetooth?.connectAsClient(bluetoothDevice, uuid) ?.subscribeOn(Schedulers.io()) ?.observeOn(AndroidSchedulers.mainThread())

MoveHls avatar Oct 18 '19 11:10 MoveHls