📢 Webサイト閉鎖と移転のお知らせ
このWebサイトは2026年9月に閉鎖いたします。
新しい記事は移転先で追加しております。(旧サイトでは記事を追加しておりません)
| 159行目: | 159行目: | ||
==== PCのソフトウェア ==== | ==== PCのソフトウェア ==== | ||
ソフトウェアの開発は、Visual Studio 2019のコンソールを用いている。<br> | ソフトウェアの開発は、Visual Studio 2019のコンソールを用いている。<br> | ||
予め、HC-06とペアリングする必要がある。PINは、0000または1234のいずれかである。<br> | |||
<br> | <br> | ||
標準ライブラリにあるBluetoothのAPIはUWP専用であるため、NuGetからコンソールでも使用できる<code>UwpDesktop</code>をインストールする。<br> | 標準ライブラリにあるBluetoothのAPIはUWP専用であるため、NuGetからコンソールでも使用できる<code>UwpDesktop</code>をインストールする。<br> | ||
| 214行目: | 215行目: | ||
private GattDeviceService gattService; | private GattDeviceService gattService; | ||
private GattCharacteristic vroomService; | private GattCharacteristic vroomService; | ||
private readonly String serviceGuid = "00001101-0000-1000-8000-00805f9b34fb"; | |||
private async Task WatcherReceived(BluetoothLEAdvertisementWatcher sender, BluetoothLEAdvertisementReceivedEventArgs args) | private async Task WatcherReceived(BluetoothLEAdvertisementWatcher sender, BluetoothLEAdvertisementReceivedEventArgs args) | ||