如何使用蓝牙经典,而不是乐 [英] How to use bluetooth classic instead of le

查看:171
本文介绍了如何使用蓝牙经典,而不是乐的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在参考丹尼斯·马修斯回答你如何在iOS蓝牙指定的经典,而不是LE?有没有从<一个不同的API href=\"http://developer.apple.com/library/ios/documentation/CoreBluetooth/Reference/CoreBluetooth_Framework/_index.html\">Core蓝牙框架?

In reference to Dennis Mathews answer how do you specify bluetooth classic instead of LE on iOS? Is there a different api from Core Bluetooth Framework?

推荐答案

Joels有使用蓝牙经典iOS上非常明确的方式。它与外部附件框架(还包括除直接的硬件连接然而,蓝牙经典)。

Joels there is a very clear way to use Bluetooth classic on iOS. It is with the External Accessory framework (it also includes direct hardware connections in addition to Bluetooth classic however).

您需要添加 ExternalAccessory.framework 并指定所需的背景应用与附件通信您的plist里面的模式开始。但是,应该指出的是,蓝牙经典,用户必须从系统蓝牙设置添加蓝牙设备。只有具备蓝牙LE,我们能够从应用程序方面添加设备。

You need to add the ExternalAccessory.framework and specify "App communicates with an accessory" in the required background modes inside your plist to get started. It should be noted however that with Bluetooth classic, the user must add your Bluetooth device from the System Bluetooth settings. It is only with Bluetooth LE that we are able to add devices from the app side.

检查出的<一的文档href=\"http://developer.apple.com/library/ios/documentation/ExternalAccessory/Reference/ExternalAccessoryFrameworkReference/_index.html\">External附件框架

在回答您关于MFI程序的问题,这应该澄清:

In response to your question regarding the MFi program, this should clarify:

我要开发一个iOS应用,随着的MFi配件进行通信。我是否需要加入MFI计划?
       第iOS应用开发者不需要加入MFI计划。一切应用程序开发者需要在外部附件框架,
  这在iOS SDK中提供。要访问iOS的SDK,请加入
  iOS开发者计划: https://developer.apple.com/programs/ios/

如果您想了解更多信息,请参阅 MFI常见问题解答

If you'd like to learn more, consult the MFi FAQ

这篇关于如何使用蓝牙经典,而不是乐的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆