c# Bluetooth LE - write configuration error - ValueChanged never called

后端 未结 2 1301
夕颜
夕颜 2021-01-28 12:01

So I try to connect my c# WPF program to a BLE device and this is the code to connect to the device:

private async Task ConnectToWatcher(DeviceInformation device         


        
2条回答
  •  迷失自我
    2021-01-28 12:40

    you need to call CoInitializeSecurity before

    more info here. couple of weeks I spent looking for solution :)

    https://social.msdn.microsoft.com/Forums/en-US/58da3fdb-a0e1-4161-8af3-778b6839f4e1/

提交回复
热议问题