EADemo代码中的协议字符串名称 [英] Protocol String name in EADemo Code

查看:190
本文介绍了EADemo代码中的协议字符串名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我第一次连接MFi配件时,我需要在plist文件中声明哪些协议以及从哪里获取它的名称?

即使连接了我的MFi配件并运行EADemo代码仍然说它没有附件连接?

我认为EADemo代码不起作用,除非并且直到写入一些适当的附件相关协议字符串而不是com.apple.p1和com.apple .p2。

Whenever I connect the MFi accessory for the first time which protocols do I need to declare in the plist file and from where can I get it`s name?
Even after connecting my MFi accessory and running the EADemo code still it says that No Accessory Connected ?
I assume that the EADemo code will not work unless and until some proper accessory related protocol strings would be written instead of com.apple.p1 and com.apple.p2.

我知道有一个名为EAAccessory的类并使用属性protocolString,我可以知道协议字符串名称。但首先,即使需要协议plist文件中列出的字符串名称,以便运行代码。

I know there is a class called EAAccessory and using the property protocolString, I can know the protocol String name.But in the first place even that requires a protocol string name listed in plist file in order to run the code.

我是否需要让制造商了解协议字符串,或者是否有适用于所有MFi配件的通用协议?

Do I need to ask the manufacturer to know about the protocol string or is there any universal protocol that can work for all MFi accessories?

推荐答案

MFI与Apple设备有一个复杂的过程,有时制造商没有完成所有过程。根据你的描述,问题不仅仅是protocolString是不对的。
制造商需要做很多工作。你应该尝试其他制造商的配件。

MFI have a complicated process with Apple device, and sometimes the manufacturer didn't finished all the process. And base on your describe, the problem not just the protocolString is not right. the manufacturer needed much work to do. you should try another manufacturer's accessory.

这篇关于EADemo代码中的协议字符串名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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