Closed quanguyen closed 3 years ago
Same issue here: How can I monitor an already established connection?
Same issue here: How can I monitor an already established connection?
Hi @komaxx, sorry to hear you're having issues, I've been getting overloaded with work, notably server side Swift stuff and haven't had much time to work on this library.
Do you know of any specific CoreBluetooth hook/notification that does what you need in this case and if so could you share a link to the documentation so I can take a look?
If it's not too hard, you may even want to consider doing a PR for it and I will gladly merge it.
Any updates on this request? I'm also interested.
This is not always working, the method returns before calling the postCentralEvent if you don't have any disconnectRequest for the uuid. If you are trying to detect an unexpected peripheral disconnect you'll miss it.
let uuid = peripheral.identifier
guard let request = disconnectRequests[uuid] else {
return
}
...
postCentralEvent(Central.CentralCBPeripheralDisconnected, userInfo: userInfo)
@sirowain Fixed in 2.2.1
Hi,
How should I detect a peripheral disconnected from the master?
Thanks,