我正在使用Lecia Disto e7100i,它基本上是使用激光测量距离和面积的。此设备具有蓝牙功能,可以与Windows配对。 我正在尝试开发一个wpf应用,该应用使用c#读取测量的数据。
设备没有附带sdk。 我尝试使用32feet.Net,但是由于没有适当的文档,我不知道从哪里开始。
有什么办法可以解决我的问题?
答案 0 :(得分:1)
要开始使用,您可以尝试:
var client = new BluetoothClient();
// Select the bluetooth device
var dlg = new SelectBluetoothDeviceDialog();
DialogResult result = dlg.ShowDialog(this);
if (result != DialogResult.OK)
{
return;
}
BluetoothDeviceInfo device = dlg.SelectedDevice;
BluetoothAddress addr = device.DeviceAddress;
Console.WriteLine(device.DeviceName);
BluetoothSecurity.PairRequest(addr, "PIN"); // set the pin here or take user input
device.SetServiceState(BluetoothService.HumanInterfaceDevice, true);
Thread.Sleep(100); // Precautionary
if (device.InstalledServices.Length == 0)
{
// handle appropriately
}
client.Connect(addr, BluetoothService.HumanInterfaceDevice);
还要确保
希望有帮助。干杯!
答案 1 :(得分:0)
答案 2 :(得分:0)
这不是完整的答复,而是更多有关如何解决问题的指南: