安卓4.3,蓝牙LE外设 [英] Android 4.3 as a Bluetooth LE Peripheral

查看:176
本文介绍了安卓4.3,蓝牙LE外设的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

快速的问题。我似乎无法找到这在Android文档,所以我不认为这是可能的,但有可能的是Android 4.3的设备(在我的情况下,一台Nexus 4)表现为蓝牙外设?我知道iOS的支持外周和中枢,但似乎只有Android的支持中心。

Quick question. I can't seem to find this in the Android docs, so I don't think it is possible, but is it possible to have an Android 4.3 device (in my case, a Nexus 4) behave as a Bluetooth peripheral? I know iOS supports both peripheral and central, but it seems like Android only supports central.

我想通过连接蓝牙LE Android设备到Mac,但由于OS X不支持外设模式,它看起来像Android不要么,我可能会去与蓝牙2.0或其他通信方法。

I'd like to connect an Android device to a Mac using Bluetooth LE, but since OS X doesn't support peripheral mode and it looks like Android doesn't either, I might have to go with Bluetooth 2 or another communication method.

推荐答案

不幸的是,没有办法让Android设备充当外设。他可以创建关贸总协定服务器,服务和charachteristics但是没有办法让广告。

Unfortunately there is no way for Android devices to act as a peripheral. He can creates GATT servers, services and charachteristics but there is no way to make the advertising.

文档:<一href="http://developer.android.com/guide/topics/connectivity/bluetooth-le.html">http://developer.android.com/guide/topics/connectivity/bluetooth-le.html

该手机支持的核心作用;

The phone supports the central role;

我在等这个功能太,但似乎我们必须等待下一次的Andr​​oid版本。

I'm waiting for this feature too, but it seems we have to wait for next Android releases.

这篇关于安卓4.3,蓝牙LE外设的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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