Vin*_*iah 3 .net c# bluetooth 32feet
我正在使用 IntheHand 32feet 库http://32feet.codeplex.com/ 我正在搜索代码以获取蓝牙适配器的本地 MAC 地址。我试过可能会快速调整但没有像
using InTheHand.Net.Bluetooth;
using InTheHand.Net.Sockets;
Run Code Online (Sandbox Code Playgroud)
和
BluetoothListener btListener;
btListener.Server.AddressFamily.ToString();
Run Code Online (Sandbox Code Playgroud)
但不起作用。请建议我可以获取地址的方式
https://32feet.codeplex.com/wikipage?title=Local%20Radio%20Information
BluetoothRadio myRadio = BluetoothRadio.PrimaryRadio;
if (myRadio == null) {
Console.WriteLine("No radio hardware or unsupported software stack");
return;
}
RadioMode mode = myRadio.Mode;
// Warning: LocalAddress is null if the radio is powered-off.
Console.WriteLine("* Radio, address: {0:C}", myRadio.LocalAddress);
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3365 次 |
| 最近记录: |