-1

我有蓝牙设备,如何通过 SPP 配置文件在 xamarin (monotouch) 中以编程方式连接它,并阅读设备消息我需要以编程方式识别可用设备并选择我的设备?我试试这段代码

CBCentralManager _manager = new CBCentralManager ();
var spp = Guid.Parse("00001101-0000-1000-8000-00805f9b34fb");
_manager.ScanForPeripherals(new [] { spp });
4

1 回答 1

0

我也有同样的问题,发现你无法访问蓝牙 SPP。

相反,您需要通过外部附件 API。

这个线程帮助我朝着正确的方向工作。希望它也可以帮助你!

于 2014-06-02T06:44:11.990 回答