附近的Google API无法找到Eddystone信标

时间:2016-02-19 14:59:19

标签: swift beacon eddystone google-nearby

我尝试使用Nearby API使用Swift扫描 Eddystone BLE ,我已拨打同样的电话:

if let messageMgr = self.messageMgr {    
        let params: GNSSubscriptionParams = GNSSubscriptionParams.init(strategy:
            GNSStrategy.init(paramsBlock: { (params: GNSStrategyParams!) -> Void in
                params.includeBLEBeacons = true;
            }))
        subscription = messageMgr.subscriptionWithParams(params,
            messageFoundHandler:{[unowned self] (message: GNSMessage!) -> Void in
                self.messageViewController.addMessage(String(data: message.content, encoding:NSUTF8StringEncoding))
            },
            messageLostHandler: {[unowned self](message: GNSMessage!) -> Void in
                self.messageViewController.removeMessage(String(data: message.content, encoding: NSUTF8StringEncoding))})
    }
}

但是!!!我检测到 0 beacon ,你可以在我的屏幕日志中看到它:==>

2016-02-19 15:06:54.870 NearbyBeaconTestGoogle[452:55363] Beacon: Start scanning
2016-02-19 15:06:54.882 NearbyBeaconTestGoogle[452:55363] Tokens: 0 good, 0 bad, 3 broadcast
2016-02-19 15:06:54.882 NearbyBeaconTestGoogle[452:55363] Report RPC request: 3 token(s), 0 beacon(s), 6 directive(s)
2016-02-19 15:06:55.351 NearbyBeaconTestGoogle[452:55363] Report RPC response: Success

也许我错过了什么?

0 个答案:

没有答案