Skip to content
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

Can't reconnect after disconnect #226

Closed
TSkovsgaard opened this issue Dec 21, 2021 · 7 comments · Fixed by #246
Closed

Can't reconnect after disconnect #226

TSkovsgaard opened this issue Dec 21, 2021 · 7 comments · Fixed by #246
Labels
apple bug Something isn't working
Milestone

Comments

@TSkovsgaard
Copy link

Hi

On iOS when I call disconnect() the state changes directly to Disconnected, if I Connect again the state changes to Connected but on write if get the com.juul.kable.NotReadyException because the peripheral is disconnected

Debug: (Kermit) New state Disconnected(status=null)
Debug: (Kermit) New state com.juul.kable.State.Connecting.Bluetooth@83761768
Debug: (Kermit) New state com.juul.kable.State.Connecting.Services@83761528
Debug: (Kermit) New state com.juul.kable.State.Connected@83761718```

Now I call disconnect() the state never updates, if I call connect() again it updates directly to Connected

Debug: (Kermit) New state com.juul.kable.State.Connected@83761718

Now I write to the peripheral but I get the exception because the peripheral is disconnected.

com.juul.kable.NotReadyException
@twyatt twyatt added bug Something isn't working apple labels Dec 21, 2021
@twyatt
Copy link
Member

twyatt commented Dec 21, 2021

Thanks for the report. This is likely a regression from recent connection handling changes. I'll try to find some time to look into this soon.

@twyatt

This comment has been minimized.

@TSkovsgaard
Copy link
Author

Hi @twyatt did you have any time looking into my issue yet ?

@twyatt

This comment has been minimized.

@twyatt

This comment has been minimized.

@twyatt
Copy link
Member

twyatt commented Jan 18, 2022

Fixed in 0.12.0.

@TSkovsgaard
Copy link
Author

Hi @twyatt thank you, I can confirm it works in version 0.12.0, great job 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apple bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants