私はWPFアプリケーション(UWPではなく)を作成していますが、BluetoothLEを実行する必要があります。WPFのBluetoothLe:一部のクラス/メソッドが見つかりません
私は、Bluetooth-usingsを追加しました:
using Windows.Devices.Bluetooth;
using Windows.Devices.Bluetooth.GenericAttributeProfile;
と私はCへの参照を追加しました:\プログラムファイル(x86の)\リファレンスアセンブリ\マイクロソフト\ Framework.NETCore \ V4.5の\のSystem.Runtime .WindowsRuntime.dll およびC:¥Program Files(x86)¥Windows Kits¥10¥UnionMetadata¥Facade¥Windows.WinMD。
しかし、今、2つのエラーがoccure:
var gattServicesResult = await device.GetGattServicesForUuidAsync(new Guid(RX_SERVICE_UUID));
はエラーを与える「BluetoothLedevice」「GetGattServicesForUuidAsync」の定義が含まれていません[...](あなたがusingディレクティブまたはアセンブリ参照が不足していますか? )
と
GattWriteResult result =
await characteristic.WriteClientCharacteristicConfigurationDescriptorWithResultAsync(GattClientCharacteristicConfigurationDescriptorValue.Notify);
エラーをタイプ又はnamespを与えますエース名 'GattWriteResult'が見つかりませんでした(使用するディレクティブまたはアセンブリ参照がありませんか?)
また、UwpDesktopを試しました。
whats goind on any ideas?どんな助けにも感謝!
これは質問に対する答えを提供しません。十分な[評判](https://stackoverflow.com/help/whats-reputation)があれば、[投稿にコメントする]ことができます(https://stackoverflow.com/help/privileges/comment)。代わりに、[質問者からの明確化を必要としない回答を提供する](https://meta.stackexchange.com/questions/214173/why-do-i-need-50-reputation-to-comment-what-can- i-do-代わりに)。 - [レビューの投稿](レビュー/低品質の投稿/ 17901071) – Jodocus
あなたは正しいですが、十分な評判はありません。ところで、これを行うことで私は同じ問題を解決しました – nikname