Closed droideveloper1996 closed 1 year ago
I am observing connection during onResume and I can't figure out way to stopObserving this. Is there any way to do so?
centralManager.observeConnectionState { peripheral, state -> Log.d("Connected Device",peripheral.address) }
you could simply provide an 'empty' lambda to observeConnectionState
I am observing connection during onResume and I can't figure out way to stopObserving this. Is there any way to do so?
centralManager.observeConnectionState { peripheral, state -> Log.d("Connected Device",peripheral.address) }