如何测试EADemo蓝牙应用 [英] How to test EADemo Bluetooth app

查看:341
本文介绍了如何测试EADemo蓝牙应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很新的iOS开发。我想测试苹果的EADemo示例应用程序通过蓝牙连接外部附件。

I am very new to iOS development. I want to test Apple's EADemo sample app for connecting External Accessories via Bluetooth.

按我的理解,EADemo code不会,除非一些适当的配件相关协议字符串定义,而不是com.apple.p1和com.apple.p2工作。

As per my understanding, EADemo code will not work unless some proper accessory related protocol strings are defined instead of com.apple.p1 and com.apple.p2.

我可以测试不提供任何附件协议字符串的EADemo应用程序?如何测试EADemo应用?

Can I test the EADemo app without providing any accessory protocol string? How to test EADemo app?

推荐答案

的EADemo应用程序,你的配件需要在一个协议,用于通信达成一致。通常情况下,该附件将提供该应用它支持的协议的字符串。这些也需要在EADemo应用程序的Info.plist文件中定义。只需添加所使用的配件放在上面或下面com.apple.p1附加的行字符串。该应用程序将不能,如果你不这样做,你的配件进行通信。

The EADemo app and your accessory need to agree on a protocol to use for communication. Normally, the accessory will provide the app the protocol strings it supports. These also need to be defined in the EADemo app's Info.plist file. Just add the string that is used by your accessory on an additional line above or below com.apple.p1. The app will not be able to communicate with your accessory if you do not do this.

当你运行应用程序,接下来就可以选择附件和协议字符串。在此之后,应用程序将让您发送/接收数据。因此,要全面测试的EADemo应用程序,你真的需要有协议字符串设立第一。

When you run the app, you should then be able to choose the accessory and protocol string. After that, the app will let you send/receive data. So to fully "test" the EADemo app you really need to have the protocol string set up first.

这篇关于如何测试EADemo蓝牙应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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