Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/xamarin/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xamarin.ios 如何在xamarin中通过SPP配置文件以编程方式连接设备_Xamarin.ios_Xamarin_Spp - Fatal编程技术网

Xamarin.ios 如何在xamarin中通过SPP配置文件以编程方式连接设备

Xamarin.ios 如何在xamarin中通过SPP配置文件以编程方式连接设备,xamarin.ios,xamarin,spp,Xamarin.ios,Xamarin,Spp,我有蓝牙设备,如何通过SPP配置文件在xamarin(monotouch)中以编程方式连接到它,并读取设备消息 我需要以编程方式标识可用设备并选择我的设备? 我试试这个代码 CBCentralManager _manager = new CBCentralManager (); var spp = Guid.Parse("00001101-0000-1000-8000-00805f9b34fb"); _manager.ScanForPeripherals(new [] { spp }); 我也

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

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

我也有同样的问题,并且发现你不能访问BlueTooth SPP

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

这有助于我朝着正确的方向工作。希望它也能帮助你