Multipeer连接蓝牙? [英] Multipeer connectivity over Bluetooth?

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

问题描述

我开始做广告,开始浏览。
在同一个无线网络,它的工作原理

I started to advertise, started to browse. When on the same WiFi, it works.

但是,当我打开WiFi关闭,和只留下蓝牙,甚至也不是 - (无效)浏览器:(MCNearbyServiceBrowser *)浏览器foundPeer:(MCPeerID *)的peerID withDiscoveryInfo :(NSDictionary的*)信息被调用

But when I turn WiFi off, and leaving only Bluetooth, nor even the -(void)browser:(MCNearbyServiceBrowser*) browser foundPeer:(MCPeerID*) peerID withDiscoveryInfo:(NSDictionary*) info gets called.

我需要的指示蓝牙广告明确莫名其妙?还是应该以这种方式工作无缝?

Do I have to indicate to advertise on Bluetooth explicitly somehow? Or should it work this way seamlessly?

使用的GameKit有此设置。我找不到任何MC类似。

With GameKit there was a setting for this. I can't find any similar in MC.

推荐答案

相同code 会工作。

The same code will work.

无需蓝牙明确做广告。它会自动到来。就拿保持这两种设备的蓝牙照顾。

No need to explicitly advertise on Bluetooth. It will automatically come. Just take care of keeping bluetooth of both devices ON.

有对蓝牙无线或者没有明确设置,它会以任何可能的方式,他们都可以连接的设备。

There is no explicit setting for bluetooth or Wifi, It will connect devices in whatever possible way they are available.

这篇关于Multipeer连接蓝牙?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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