Android 4.3 作为蓝牙 LE 外设 [英] Android 4.3 as a Bluetooth LE Peripheral

查看:23
本文介绍了Android 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 或其他通信方法.

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 设备无法充当外围设备.他可以创建 GATT 服务器、服务和特性,但无法制作广告.

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.

文档:http://developer.android.com/guide/topics/connectivity/bluetooth-le.html

手机支持中心角色;

我也在等待这个功能,但似乎我们必须等待下一个 Android 版本.

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

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

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