在 iPhone 上使用 bonjour 会自动启用蓝牙吗?

发布于 2024-08-19 05:33:32 字数 213 浏览 3 评论 0原文

我计划在 iphone 上使用 bonjour 开发一个点对点应用程序。没有可用的无线网络,因此我依靠蓝牙。我知道基于 bonjour 的服务可以在没有 wifi 的情况下通过蓝牙工作。

我的问题是,当我启动 bonjour 服务或尝试进行发现时,手机上的蓝牙是否会自动启用?

如果没有,如何启用蓝牙 - 我在 SDK 中找不到任何公共 API?

问候, 血红蛋白

I am planning to a peer to peer app using bonjour for the iphone. There will be no wifi available and hence am relying on bluetooth. I know bonjour based services works over bluetooth in the abscense of wifi.

My question is, will bluetooth on the phone automatically become enabled when I launch the bonjour service or try to do discovery?

If not, how do I enable bluetooth - I can't find any public API's in the SDK?

Regards,
hb

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

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

发布评论

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

评论(1

忆离笙 2024-08-26 05:33:32

不可以。用户负责在“设置”应用程序中选择网络连接选项。如果他们尚未启用蓝牙,您无法为他们打开蓝牙。

-t

No. The user is responsible for selecting the network connectivity options in the Settings App. If they have not enabled Bluetooth, you cannot turn it on for them.

-t

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