如何使蓝牙设备信息连接假



如何断开蓝牙设备的连接,使其BluetoothDeviceInfo.Connected为假?

我尝试使用SetServiceState(BluetoothService.SerialPort, false)但它仍然可以连接。

我不想使用BluetoothSecurity.RemoveDevice因为卸载然后重新安装设备需要很长时间。

可能吗?还是仅在设备端可用?

我认为这

是不可能的。问题是BluetoothDeviceInfo中的属性是在发现时设置的。以后发生的任何更改都不会收到通知。

http://www.nudoq.org/#!/Packages/32feet.NET/InTheHand.Net.Personal/BluetoothDeviceInfo

因此,如果要更改属性,则必须断开连接,执行另一个发现并使用新数据。

最新更新