question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't reconnect after disconnect

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
TSkovsgaardcommented, Jan 20, 2022

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

0reactions
twyattcommented, Jan 18, 2022

Fixed in 0.12.0.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Remote Desktop client disconnects and can't reconnect to the ...
In this article. After Remote Desktop client loses its connection to the remote desktop, the client can't immediately reconnect.
Read more >
Why cant reconnect , after disconnecting? That is blatantly bad ...
Your character would still be vulnerable, just not moving, as you arent connected to the game for a little bit.
Read more >
Can't reconnect after server disconnect - Blizzard Forums
Hi, I just got a red exclamation icon in a comp game - I've never seen it before. The server connection dropped shortly...
Read more >
Cannot reconnect after disconnection from remote #4441
The only way to reconnect is to close the window or select "Close Remote Connection", which will discard all of your edits. So...
Read more >
Remote Desktop client disconnects and cannot reconnect to ...
In short, Remote Desktop client after it loses connection and disconnects cannot reconnect to the same session.A work around in this case is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found