是否可以仅使用模块的MAC地址创建蓝牙连接?
我的代码示例
private static String address = "00:15:FF:F2:19:5F";
BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
BluetoothDevice device = BluetoothAdapter.getRemoteDevice(address);
new ReadBluetoothTask().execute(new Object[] ReadBluetoothTask.test.read, device});
但我认为getRemoteDevice()
方法存在问题。
感谢