Closed ir-fuel closed 1 year ago
I know this is an older issue, but just wondering if this has been fixed by #60 and by version 3.1.0
. We have been hitting a similar issue in our app and are hoping it all goes away nicely with the upgrade :)
I know this is an older issue, but just wondering if this has been fixed by #60 and by version
3.1.0
. We have been hitting a similar issue in our app and are hoping it all goes away nicely with the upgrade :)
Yes the two problems were linked, you should be good now.
For some reason the device discovery callback reported the same device multiple times.
Every time it was discovered it was added to the array in this code:
in
So I had the same device multiple times there and that created problems.
When I took the first one out of that list (of the 6 pointing to the same device) I got timeouts when trying to discover its services. I presume because maybe the
CBPeripheral
instance was the same, but thePeripheralProxy
wasn't, and inside that proxy you docbPeripheral.delegate = self
so it ends up pointing to an instance I am not using (if that all makes sense :) )I solved this by doing this:
Just FYI ;)