[UWP] [C#] BluetoothLEDevice.FromIdAsync停止工作 [英] [UWP][C#]BluetoothLEDevice.FromIdAsync stopped working

查看:497
本文介绍了[UWP] [C#] BluetoothLEDevice.FromIdAsync停止工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我正在使用Visual Studio 2017下的UWP框架开发蓝牙应用程序。一切顺利,感谢Microsoft示例(C#SDK示例BluetoothLE写得很好) 。

I'm developping a Bluetooth app using UWP framework under Visual Studio 2017. Everything is going well thanks to Microsoft Example (C# SDK Example BluetoothLE well writen).

在我开发的第四天,行中的API  BluetoothLEDevice.FromIdAsync: 

During my fourth day of development, the API BluetoothLEDevice.FromIdAsync in the line: 

bluetoothLeDevice = await BluetoothLEDevice.FromIdAsync(bleDeviceToConnect) .Id); 

bluetoothLeDevice = await BluetoothLEDevice.FromIdAsync(bleDeviceToConnect.Id); 

不再有效,在我的应用程序中都没有,在Microsoft的原始样本中我都没有使用它作为示例(我没有触及任何内容) 。

Is no longer working, Neither in my app, neither in the original sample from Microsoft I'm using as example (I don't touch anything on it).

我不明白,因为我没有改变任何东西(在我的项目属性中,我的计算机上没有任何Windows更新)。当我调用该函数时,它永远不会返回。

I don't understand as I changed nothing (in my project properties, neither any Windows update on my computer). When I call the function, it just never return.

你见过这个吗?关于如何解决问题的任何意见? 

Have you seen this? Any input on how to solve it? 

我完全陷入困境,因为我现在无法连接任何对象而无法继续...

I'm totaly stuck and can't go ahead as I can't connect at all any object now...

谢谢,

祝你好运

Anthony

推荐答案

你好  Anthony_Jou,

Hello Anthony_Jou,

欢迎
到开发通用Windows应用程序论坛
!请使用  标记 
发布到此论坛时,谢谢!

您可以尝试关闭蓝牙设备,然后在设备中再次开启设置app => Devices =>蓝牙&其他设备。如果您仍然遇到此问题,请分享您的设备类型和设备操作系统版本
,以帮助我在相同的情况下重现此问题。 

You can try to  turn off your Bluetooth device then turn on it again in your device Settings app => Devices => Bluetooth & other devices. If you still have this issue, please share your device type and device OS version to help me reproduce this issue on the same circumstances. 

祝你好运,

Breeze


这篇关于[UWP] [C#] BluetoothLEDevice.FromIdAsync停止工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆