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

用mac的方式直连BLE设备,要怎么取得BluetoothLeDevice? #74

Open
lugia2491 opened this issue Mar 25, 2019 · 1 comment
Open

Comments

@lugia2491
Copy link

我用mac的方式直连BLE设备,但是当我要用Device.getAddress()或是Device.getName()的时候却无法取得。
因为省略了搜索设备过程中的Device=bluetoothLeDevice
请问有什么方法可以取得BluetoothLeDevice?

@xiaoyaoyou1212
Copy link
Owner

连接成功后就会有一个设备镜像DeviceMirror 来管理当前设备,通过DeviceMirror 可以获取BluetoothLeDevice对象

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