MicrosoftDocs / winrt-api

WinRT reference content for developing Microsoft Universal Windows Platform (UWP) apps
Creative Commons Attribution 4.0 International
230 stars 494 forks source link

await ble_Device.GetGattServicesAsync(BluetoothCacheMode.Uncached) 返回值太慢,返回失败率太高设备不可访问 #2359

Closed xiazx closed 1 year ago

xiazx commented 1 year ago

[在此处输入反馈] == [Enter feedback here]

The title machine-translates to "await ble_Device.GetGattServicesAsync(BluetoothCacheMode.Uncached) The return value is too slow, the return failure rate is too high and the device is inaccessible".

文档详细信息 ⚠ 请勿编辑此部分。 learn.microsoft.com ➟ GitHub 问题链接必须具有此部分。 • ID: 69411ce9-8593-48a8-4b9c-ff6d34a95720 • Version Independent ID: bbda6169-0dd1-d876-1f1e-8c9e1dd3e2d1 • Content: BluetoothLEDevice.GetGattServicesAsync 方法 (Windows.Devices.Bluetooth) - Windows UWP applications • Content Source: winrt-api-build/xml/Windows.Devices.Bluetooth/BluetoothLEDevice.xml • Product: uwp • Technology: winrt-reference • GitHub Login: @stevewhims • Microsoft Alias: stwhi

stevewhims commented 1 year ago

Reply provided in English first, and then (machine-translated) Chinese afterward. 先用英文回复,再用中文(机器翻译)回复。

Hi, @xiazx, and thanks for filing this issue. It sounds like when calling this API to retrieve services that are in the uncached mode, the performance of the API is slower than you'd like (along with other issues).

The feedback channel you're using here (Submit and view feedback for > This page) is for feedback about the documentation in this topic itself, as published. For example, if the content is incorrect or incomplete.

For questions (or requests for help) regarding the product itself (the operating system and its APIs), one option is to click Submit and view feedback for > This product, and you'll be taken to Microsoft Q&A.

Here are all of the developer support resources, for completeness.

Since there doesn't seem to be any action to take to improve the docs, I'll go ahead and close the issue.

Thanks! -Steve


嗨,@xiazx,感谢您提出这个问题。 听起来好像在调用此 API 以检索处于未缓存模式的服务时,API 的性能比您希望的要慢(以及其他问题)。

您在此处使用的反馈渠道(提交并查看针对 > 此页面 的反馈)是针对已发布的本主题本身文档的反馈。 例如,如果内容不正确或不完整。

对于有关产品本身(操作系统及其 API)的问题(或请求帮助),一种选择是单击 提交并查看反馈 > 此产品,您将被 到 微软问答

为了完整起见,这里是所有开发人员支持资源。

由于似乎没有任何可采取的措施来改进文档,我将继续并关闭问题。

谢谢! -史蒂夫