CoreBluetooth:刷新已经发现周围的本地名称 [英] CoreBluetooth: Refreshing local name of an already discovered Peripheral

查看:312
本文介绍了CoreBluetooth:刷新已经发现周围的本地名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我成功发现外围和检索其本地名称:

I successfully discover a Peripheral and retrieve its local name:

[advertisementData objectForKey:CBAdvertisementDataLocalNameKey]

但如果外围停止并重新启动一个不同的本地名广告客户不承认的变化。我猜

But if the Peripheral stops and restarts advertising with a different local name, the Client doesn't recognise the change. I guess

- (void)peripheralDidUpdateName:(CBPeripheral *)peripheral

仅当两个设备被配对的工作原理。有没有办法得到一个更新而不配对?

only works if the two devices are paired. Is there a way to get an update without pairing?

推荐答案

苹果的错误。还是美元的iOS 6.1 p $ psent。这是使用方法如何重置CB​​缓存:

Apple's bug. Still present in iOS 6.1. Here is the trick how to reset CB cache:


  1. 备份设备到iCloud。

  2. 重置网络设置。

  3. 删除您的应用程序,并通过安装Xode回

  4. 在这一点上,你的周围会出现新的名称。

  5. 手动恢复网络设置或者从iCloud中恢复。

对不起。

这篇关于CoreBluetooth:刷新已经发现周围的本地名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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