我正在探索使用 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):
关于ios - Xamarin.iOS 和 RFComm,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47808224/