在 iPhone 上使用 bonjour 会自动启用蓝牙吗?
我计划在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不可以。用户负责在“设置”应用程序中选择网络连接选项。如果他们尚未启用蓝牙,您无法为他们打开蓝牙。
-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