简体   繁体   English

越狱iPhone上的蓝牙编程

[英]Bluetooth Programming on Jailbroken iPhone

I have written a code that transfers the data from one i-Device to another i-Device, but since Apple is coming with official unlocked devices, I want to extend the solution to transfer data from an i-Device to another platform based device. 我已经编写了一个代码,可以将数据从一个i-Device传输到另一个i-Device,但由于Apple正在推出官方解锁设备,我想扩展解决方案,将数据从i-Device传输到另一个基于平台的设备。

What changes it will require? 它需要改变什么? How to write this code? 怎么写这段代码? Is there any reference that I can use? 我可以使用任何参考吗?

Obviously you can not use the Game kit to communicate with a non-iOS devices. 显然,您无法使用游戏工具包与非iOS设备进行通信。
You would have 2 options: 你有2个选择:

1 - Enroll the " Made for iPhone " program which allows you to create your own communication protocol, but I think you can not use bt profile for data exchange(like png,mp3..), this program is related to the development of external accessories like bt headsets etc. In this case you have to use EA Framework . 1 - 注册“ Made for iPhone ”程序,它允许您创建自己的通信协议,但我认为您不能使用bt profile进行数据交换(如png,mp3 ..),这个程序与外部开发有关像bt耳机等配件。在这种情况下,你必须使用EA框架

2 - If you want to develop apps for jailbroken devices, you can look at BTStack . 2 - 如果你想为越狱设备开发应用程序,你可以看看BTStack

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM