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

Obtain list of connected devices #202

Open
ChrGri opened this issue Dec 6, 2023 · 1 comment
Open

Obtain list of connected devices #202

ChrGri opened this issue Dec 6, 2023 · 1 comment

Comments

@ChrGri
Copy link

ChrGri commented Dec 6, 2023

Awesome project. Thanks a lot.

For debug purposes it would be great to obtain information about the bluetooth device to which the ESP is connected, e.g. the mac address. Is that possible?

Perhaps the "NimBLEConnInfo NimBLEServer::getPeerInfo(size_t index)" function is correct.
https://github.com/h2zero/NimBLE-Arduino/blob/e46123a084e0aa336e4cbdd52bf001dac71e5afb/src/NimBLEServer.cpp#L287

BR
Chris

@LeeNX
Copy link

LeeNX commented Mar 19, 2024

I did a bit of hacking and have a little bit of working code, if you want to poke at it some more and get it working - LeeNX@51d67de#diff-e0dc9cb579362b38ea3fe22181e36952e3c4206fa5f695f200eac8294c2a9c01R8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants