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

peripheral.getName() == null #199

Open
WanManito opened this issue Aug 26, 2024 · 1 comment
Open

peripheral.getName() == null #199

WanManito opened this issue Aug 26, 2024 · 1 comment

Comments

@WanManito
Copy link

Hello, I would like to ask, when I call "central. getPeripheral()" to obtain "BluetoothPeripheral()" and then call "central. connectPeripheral()" to connect, is it normal for the callback "onConnectedPeripheral()" and other callbacks to have "perimeter. getName()" equal to NULL?
I seem to have found a similar issue, and do I need to use "autoConnectPeripheral()" or search again to connect again to avoid this problem?

@weliem
Copy link
Owner

weliem commented Oct 1, 2024

yes, it happens. Not all peripherals have a name....

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