找出我的蓝牙标识符是什么?

发布于 2024-12-26 16:10:01 字数 211 浏览 0 评论 0原文

一旦启用蓝牙可发现性,设备将广播唯一的 48 位标识符,对吗?我可以使用什么代码来找出该标识符的值?

我试图制作一个跨平台应用程序,需要找出手机自己的蓝牙标识符是什么。因此,如果您知道如何在 iOS 或 Android 等平台上做到这一点,那将是一个很好的开始。或者,如果可以使用 javascript,那可能是理想的选择,因为我将使用phonegap 将应用程序作为一个整体翻译为多个平台。

Once bluetooth discoverability is enabled, the device will be broadcasting a unique 48-bit identifier, right? What code can I use to find out the value of that identifier?

I'd trying to make a cross-platform app that will need to find out what the phone's own bluetooth identifier is. So if you know how to do that for iOS or android etc, that would be great a start. Or if its possible with javascript, that might be ideal, as I'll be using phonegap to translate the app as a whole for the multiple platforms.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

看海 2025-01-02 16:10:01

此处有一个适用于 Android 的 PhoneGap 蓝牙插件。我没有看到任何用于获取标识符的 API,但这可能是一个开始......

There is a PhoneGap bluetooth plugin for Android here. I don't see any APIs for getting the identifier, but it might be a start ....

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文