码迷,mamicode.com
首页 > 其他好文 > 详细

【BLE】蓝牙BLE 后台自动重连

时间:2014-08-26 15:41:36      阅读:511      评论:0      收藏:0      [点我收藏+]

标签:style   http   color   os   io   for   ar   问题   cti   

关于ios BLE在后台自动重连的问题 

找到一个国外网站是这么描述的

Re: How to make the BTLE APP to auto connect with BTLE device when iPhone4S power on 沿途见识[2]

When backgrounding, you can still scan and connect to a LE peripheral.  You can scan for peripherals using scanForPeripheralsWithSerives by stating what service you are looking for in a Peripheral.  You cannot do a general scan without stating at least one service in the passed dictionary.  If you have a CFUUIDRef from a previous connection, you can call retrievePeripherals with the CFUUIDRef.  Your delegate will receive a call to didRetrievePeripherals with a CBPeripheral.  With the CBPeripheral you can then connect using connectPeripheral.


【BLE】蓝牙BLE 后台自动重连

标签:style   http   color   os   io   for   ar   问题   cti   

原文地址:http://my.oschina.net/gejw0623/blog/306742

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!