Open xelons opened 3 years ago
Update: Even if I comment out the stopperipheralscan, it seems stop scan is still called right after startperipheralscan.
[RxBLEKit|DEBG|08:59:59.685]: CentralManager(10783802240) scanForPeripherals(
withServices: Optional("[0EF881BC-RETRACTED]"),
options: Optional([:]))
[RxBLEKit|DEBG|08:59:59.712]: CentralManager(10783802240) stopScan()
Commenting out _scanSubscription.cancel(); solves this issue. Canceling the subscription stops the scan, and sometimes the stop comes after the scan was initiated, even when using await.
Hi, Using the example provided, when the devices list is refreshed, it seems like the stopscan function is called twice, making the startperipheralscan not return any result 50% of the time.
Verbose log is :