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

List of paired devices #213

Open
arturikoX opened this issue Mar 24, 2021 · 5 comments
Open

List of paired devices #213

arturikoX opened this issue Mar 24, 2021 · 5 comments

Comments

@arturikoX
Copy link

Hi,

Can I know the paired devices my phone currently hold?
The problems I'm facing is that the "Disconnect" method keeps connections to previously devices,
So when I make another "scan" devices - I can't see them..

Versions:
"nativescript-bluetooth": "^3.0.0"
"tns-ios": {
"version": "6.5.3"
},
"tns-android": {
"version": "6.5.3"
}

Thanks

@farfromrefug
Copy link
Member

@arturikoX there is an undocumented isConnected method using the sames params as connect

@arturikoX
Copy link
Author

Hi,
Thank you for you reply,
I still have issue with Android and disconnecting ( On ios the disconnect works perfectly),
is the any new approach for disconnecting on newer versions of this plugin?

@farfromrefug
Copy link
Member

@arturikoX I don't understand your issue. please explain in details and with sample code if possibke

@arturikoX
Copy link
Author

@farfromrefug ,
After disconnecting from a ble device and getting:
JS: [nativescript-bluetooth] gattDisconnect ---- Closing GATT client 9C:A5:25:AE:E3:87 9C:A5:25:AE:E3:87 2

the device is still connecting in some way,
I still receiving "onNotify" events, I think this issue #70 relevant to my issue..

@farfromrefug
Copy link
Member

@arturikoX i have never see n that issue. if you van reproduce it by emulating a device with noble then i can fix it.
look it ble_server_test

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