我相信你可以使用32feet.NET库连接到你的设备,因为你有关于设备的所有信息。假设你要连接到一个RFCOMM设备,并希望得到一个流,那么你可以做到以下几点:
using InTheHand.Net;
using InTheHand.Net.Bluetooth;
using InTheHand.Net.Sockets;
...
...
//Somewhere in your connect function
//Replace with your mac address
BluetoothAddress addr = new BluetoothAddress(new byte[] { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 });
//Replace with the service class of your device.
Guid serviceClass = BluetoothService.SerialPort;
var ep = new BluetoothEndPoint(addr, serviceClass);
var cli = new BluetoothClient();
cli.Connect(ep);
Stream peerStream = cli.GetStream();
在这个阶段,你将有一个流到您的设备。
我不确定是否有足够的信息,因为问题没有提到正在使用哪个蓝牙堆栈和目标。另外,我们不知道您的设备。
如果您的设备需要带外配对,则需要定位到Windows 8.1或更高版本。
祝你好运!
如果您可以提供有关该设备的更多信息,请访问Windows平台,目标蓝牙堆栈,目标开发工具等。提供帮助会更容易。 –