简体   繁体   English

如何扫描并连接到 Xamarin forms 中 iOS 的蓝牙经典版?

[英]How to scan and connect to Bluetooth classic for iOS in Xamarin forms?

I'm trying to implement Bluetooth for my project.我正在尝试为我的项目实施蓝牙。 I was able to implement BLE but I have to go with Bluetooth classic because of some hardware issue.我能够实现BLE ,但由于某些硬件问题,我必须使用蓝牙经典版 go。 So for Bluetooth classic implementation I have gone through this post and I used source code from this post .因此,对于蓝牙经典实现,我已经阅读了这篇文章,并使用了这篇文章的源代码。 But in that they are trying to connect to already paired device .但他们正试图连接到已经配对的设备 But my requirement is to scan and connect to available Bluetooth classic device not BLE device.但我的要求是扫描并连接到可用的蓝牙经典设备而不是 BLE 设备。 And also there should not be any pairing dialogue appearing while connecting.并且在连接时也不应该出现任何配对对话 I even tried to check if there is any Bluetooth classic scanner application in app store for reference but I didn't find any.我什至尝试检查应用商店中是否有任何蓝牙经典扫描仪应用程序以供参考,但我没有找到。 There are only BLE scanner application in app store.应用商店中只有 BLE 扫描仪应用程序。 I have no clue how to proceed forward any suggestions?我不知道如何提出任何建议?

iOS apps can only connect to MFi enabled Bluetooth classic devices. iOS 应用程序只能连接到支持 MFi 的蓝牙经典设备。 This is why you can't find any classic BL scanner apps.这就是为什么您找不到任何经典的 BL 扫描仪应用程序的原因。 Unless your hardware contains an MFi chip from Apple you will not be able to use classic Bluetooth profiles, such as SPP, to communicate with it.除非您的硬件包含 Apple 的 MFi 芯片,否则您将无法使用经典的蓝牙配置文件(例如 SPP)与其通信。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM