Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有蓝牙设备,如何通过 SPP 配置文件在 xamarin (monotouch) 中以编程方式连接它,并阅读设备消息我需要以编程方式识别可用设备并选择我的设备?我试试这段代码
CBCentralManager _manager = new CBCentralManager (); var spp = Guid.Parse("00001101-0000-1000-8000-00805f9b34fb"); _manager.ScanForPeripherals(new [] { spp });
我也有同样的问题,发现你无法访问蓝牙 SPP。
相反,您需要通过外部附件 API。
这个线程帮助我朝着正确的方向工作。希望它也可以帮助你!