-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Registry lastConnectedPeripheral is always nil #48
Comments
When the |
After checking the code, I realized that the documentation was not up-to-date. The main responsibility of the registry is just to listen to connection event and save the peripheral in the corresponding repository. I would update the documentation to say that |
Both variables are nil, yes. |
OK that is weird and definitely a bug. I am gonna try to reproduce that and see where the bug is. |
I cannot find a way to reproduce the bug, would you mind sharing your example project @drdaz ? |
Here... use the .xcworkspace file to open the project. |
@drdaz Try using this project https://github.com/Wolox/WLXBluetoothDeviceExample. I will connect to the first device that founds and then I will fetch it from the local repository. Let me know if you can reproduce the bug with that project. Remember to run |
I've got the following code:
Later on in the flow, I consistently get a connection. But the peripheral variable in the fetchLastConnectedPeripheralWithBlock always comes back nil on next run. In addition the wiki says there's a property called lastConnectedPeripheral on the object we should use, rather than the block-based method.
The text was updated successfully, but these errors were encountered: