我将以广告客户的身份查看是否已将其连接到中央设备。
我已经根据microsoft文档上的所有内容查看了以前的问题和设计:https://docs.microsoft.com/en-us/uwp/api/windows.devices.bluetooth.genericattributeprofile.gattcommunicationstatus。但是,他们的目的是使广告客户在没有任何类型的读/写/通知操作的情况下无法查看其是否已连接。我想知道是否有人对此有任何解决方法?
GattServiceProviderAdvertisingParameters advParameters = new GattServiceProviderAdvertisingParameters
{
// IsConnectable determines whether a call to publish will attempt to start advertising and
// put the service UUID in the ADV packet (best effort)
IsConnectable = peripheralSupported,// IsDiscoverable determines whether a remote device can query the local device for support
// of this service
IsDiscoverable = true,ServiceData = buffer
};
我想查看“ IsConnectable”,但是我无法查看。
谢谢