-
-
Notifications
You must be signed in to change notification settings - Fork 137
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
How to obtain client from existing server connection? #665
Comments
Work in progress here: h2zero/esp-nimble-cpp#156 |
API added to master branch here: 6db0368 |
Nice! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use Case
NimBLE device is configured as a server and advertises.
Smartphone client scans, can see peripheral device name and connects.
After connection, would like server to use existing connection to query (and display) client device name via service
0x1800
and characteristic0x2A00
.What I've tried
onConnect()
NimBLEClient::connect()
to this addressble_gap_conn_find_by_addr()
finding the existing underlying connectionWhat I hacked to prove it's possible
NimBLEClient::connect()
to:ble_gap_conn_desc
output ofble_gap_conn_find_by_addr()
checkNimBLEClient
connected with the details from the gap conn descPossible Solutions
NimBLEClient::connect()
to allow and succeed with an already connected OTA addressNimBLEServer
for getting a properly connectedNimBLEClient
based on the underlying connectionThe text was updated successfully, but these errors were encountered: