iPhone: How to erase/wipe out bluetooth 4.0 data

戏子无情 提交于 2019-12-05 09:01:33

I am having the same issue and have found the steps to reproduce it.

It is 100% reproducible when you transmit data to the peripheral with

[peripheral writeValue:x forCharacteristic:y type:CBCharacteristicWriteWithoutResponse];

while the peripheral goes out of range and disconnects. After this happens no more services are returned by BLE devices, and only a reboot fixes the problem. This doesn't happen if the peripheral goes out of range and comes back in without transmitting data to it or if

[peripheral writeValue:x forCharacteristic:y type:CBCharacteristicWriteWithResponse];

is used...

Other disconnects don't seem to affect it, such as powering down the peripheral and powering it back up while in range even while transmitting data...

I know this isn't an answer but it looks like I can't comment for some reason.

Hope this helps debugging though.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!