ios - Xamarin.iOS 和 RFComm

标签 ios xamarin xamarin.ios

我正在探索使用 rfcomm 的蓝牙通信代码。我能够在 xamarin.android native 中实现此功能,但对于 xamarin.ios 我什至无法找到示例,只是找到了 BLE 示例。那么,您能否转发我或更好地回答 xamarin.ios 是否可以使用 rfcomm?非常感谢

最佳答案

iOS devices do not implement the Bluetooth RFCOMM (SPP) profile • Instead Bluetooth accessories can use iAP profile to exchange data with iOS devices

– iAP is RFCOMM based connection (similar to SPP)

– It uses Apple proprietary iAP application protocol

– Allows data exchange between Apps and the accessory

来自:Silicon Labs 无线和 RF 解决方案网站

如果您的蓝牙设备兼容 MFi(Made For iPhone):

Apple's MFi Program

CoreBluetooth

关于ios - Xamarin.iOS 和 RFComm,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47808224/

相关文章:

ios - 委托(delegate)意外变更

ios8,后退按钮在 'NavigationViewController'中消失

c# - 如果没有发送任何内容,Stream.Read 不会返回任何内容

android - 在 Xamarin Android 中使用 BroadcastReceiver 从通知调用服务方法

ios - 文档提供者不一致

ios - 在 iOS 上定期在后台播放声音

android - 无法为 Xamarin.Forms 项目安装 GooglePlayServices.Base 包

c# - 如何确定我的程序集是否可以被 Mono、MonoTouch、MonoDroid 使用?

ios - 在 iOS 中以编程方式减少由于后台事件而导致的电池消耗

ios - 在 Visual Studio 2015 上安装 iOS 应用程序时出现问题抛出 Xamarin Mac Agent