是否可以开发具有蓝牙功能的 iOS 应用程序?
以下情况可能吗?
假设我有一个具有蓝牙功能的秤,当我打开它时,它会通过 BT 发送重量。
从技术上讲是否可以开发一款与体重秤配对并从中接收数据的 iOS 应用程序?
Would the following be possible?
Let's say I have a scale with Bluetooth capabilities, when I turn it on, it sends the weight via BT.
Is it technically possible to develop an iOS app which pairs with the scale and receives the data from it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
据苹果公司称:
According to Apple:
是的,我们可以通过Core蓝牙框架将蓝牙设备与iOS应用程序连接起来。该框架支持 iPhone 4s、iPhone5、iPhone 5S、iPad3。我们可以使用 BLE 4.0 来进行秤和 iOS 应用程序之间的通信。在这里,iOS 应用程序成为客户端,规模成为外围设备。您可以设置秤以及从秤获取数据。
Yes, we can connect Bluetooth devices with iOS application through Core bluetooth framework. This framework is supported on the iPhone 4s, iPhone5,iPhone 5S ,iPad3. We can use BLE 4.0 for the communication between scale and iOS application. Here, iOS application become the client and scale become the peripheral. You Can set as well as get data from the weighing scale.
虽然带有蓝牙的外部配件框架是可能的解决方案之一,但它还有根据 Apple 构建的附加要求MFi,此处蓝牙参考的是经典蓝牙(版本 3.x 及以下)。
针对您定义的用例的最佳解决方案是使用蓝牙低功耗 (LE)(又名蓝牙智能)技术(蓝牙4.0),并且它可以作为 核心蓝牙框架
以下是核心蓝牙 API应用程序可以使用。
目前,最新的 iPhone 4S、New Mac Mini 和 Mac Mini 都支持低功耗蓝牙。 Macbook Air - 预计最新的苹果和蓝牙设备其他硬件将具有此标准。
While the External Accessory Framework with Bluetooth is one of the possible solutions, it has additional requirements to be built as per Apple MFi, here Bluetooth reference is to the Classic Bluetooth (Version 3.x and below)
The best solution for the use case you have defined is to use the Bluetooth Low Energy (LE) (aka Bluetooth Smart) technology (Bluetooth 4.0) and it is available to applications as part of the Core Bluetooth Frameworks
Here are the APIs for Core Bluetooth that applications can use.
While currently Bluetooth Low Energy is supported on the latest iPhone 4S, New Mac Mini & Macbook Air - its expected most new Apple & Others hardware will have this standard.