【问题标题】:How to get the list of devices in bluetooth range using GameKit.framework?如何使用 GameKit.framework 获取蓝牙范围内的设备列表?
【发布时间】:2011-06-17 10:46:51
【问题描述】:

我试图使用 GameKit.framework 获取附近开启蓝牙的设备列表,这只是表明它正在搜索设备但从未找到任何设备并给出如下错误

BTM:附加到 BTServer

>> +[GKBluetoothSupport _determineBluetoothStatus]:BT 不可用 - 稍后再试。

BTM:发布通知 BluetoothAvailabilityChangedNotification

知道这里发生了什么吗?

谢谢。

【问题讨论】:

    标签: iphone bluetooth gamekit device


    【解决方案1】:

    我认为您无法搜索任何开启蓝牙的设备。 您需要使用会话 ID 创建会话。任何运行该特定会话的设备都会显示。

    查看来自苹果的代码游戏套件示例:

    GKAuthenticate

    GKRocket

    GKTank

    GKTapper

    【讨论】:

      猜你喜欢
      • 2014-08-10
      • 1970-01-01
      • 1970-01-01
      • 2012-04-28
      • 2017-04-18
      • 1970-01-01
      • 2012-06-03
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多