Closed CyDragon80 closed 1 year ago
Hello, That's a quite good idea. Thank you for the PR. I'm starting my holidays today, but will come back to you next year. Merry Christmas!
Thanks for taking the PR. Any chance of this making it into a 2.6.0 alpha build in the near future? I have a scenario where a particular third party app I need to support simply refuses to work with me if I attempt a back connection to it. So far I've had to run tests with my temporary local copy of the library to get anywhere with it.
I'm releasing it now. Just need to write some documentation here and there.
2.6.0 final should be available soon. I just pushed it.
This is based in part on work from this PR https://github.com/NordicSemiconductor/Android-BLE-Library/pull/231 which references this issue https://github.com/NordicSemiconductor/Android-BLE-Library/issues/229 I have endeavored to cover this use case with the minimum possible code disruption. The current behavior should be exactly the same for code using the connection back to the client. I have only added one method "attachClientConnection" which can be used as a server-only alternative to using "connect" in "onDeviceConnectedToServer". Example use shown below based on a Java version of the server example in this repo (ServerConnection extends BleManager).