xiaoyaoyou1212/BLE

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

lugia2491 opened this issue · 1 comments

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

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