首页 > 代码库 > 【BLE】蓝牙BLE 后台自动重连
【BLE】蓝牙BLE 后台自动重连
关于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 后台自动重连
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。