创建iOS BLE HID服务? [英] Create iOS BLE HID service?

查看:1100
本文介绍了创建iOS BLE HID服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试创建一个实现HID服务的简单Hello World应用程序(即我的应用程序充当简单的HID按钮)。

I tried to create a simple "Hello World" app implementing the HID service (i.e. my app acting as a simple HID button).

然而,当尝试这个时我收到错误将我的服务添加到我的 CBPeripheralManager 实例后,此操作不允许指定的UUID。添加任何通用(随机UUID)服务,以及心率监视器等其他内置工作正常,但我特别对HID服务感到好奇。

However, when trying this I receive the error The specified UUID is not allowed for this operation after adding my service to my CBPeripheralManager instance. Adding any "generic" (random UUID) service works, and other builtins such as Heart Rate monitor works fine, but I was curious about the HID service in particular.

I找到此主题,表明对HID的支持已经改变了(但这似乎是在中心方面,这更有意义,因为iOS7本身支持HID)。

I found this thread, indicating that support for HID has been changed (but this seems to be on the central side, which makes more sense since HID is natively supported in iOS7).

文档失败提到任何服务都不应该受到支持。
可能是Apple在iOS7中删除了HID外设支持吗?如果是这样,这是否记录在哪里?

The documentation fails to mention that any services should be unsupported. Could it be that Apple removed HID peripheral support in iOS7? If so, is this documented somewhere?

推荐答案

我将回答我自己的问题并希望帮助其他人解决同样的问题。我去了消息来源并询问了Apple的技术支持。 HID支持是故意为iOS保留的,他们会更新文档以澄清这一点。

I am going to answer my own question and hopefully help others with the same problem. I went to the source and asked Apple's tech support. HID support is intentionally reserved for iOS, and they will update the documentation to clarify this.

这意味着无法在iOS 7中从iOS应用程序创建HID外围设备。

This means that it is not possible to create HID peripherals from iOS apps in iOS 7.

现在我知道。

这篇关于创建iOS BLE HID服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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