0
我正在使用32feet.NET库来创建蓝牙服务。但是听众无法以无效的参数开始提供的消息。这可能与提供的GUID值有关。我在设计时使用Visual Studio中的Tools ---> Create Guid菜单选项生成了GUID。32feet.NET:Bluetooth侦听器和GUID值的问题
下面我张贴代码片段。
public static void Main()
{
BluetoothListener lsnr = new BluetoothListener(MyConsts.MyServiceUuid);
lsnr.Start();//It throws an Invalid arguement supplied exception
BluetoothClient conn = new BluetoothClient();
conn = lsnr.AcceptBluetoothClient();
Stream peerStream = conn.GetStream();
}
class MyConsts
{
public static Guid MyServiceUuid = new Guid("{1D69EDBD-9862-43fe-A242-98322AE764A4}");
}
任何想法?