简体   繁体   English

我们可以使用蓝牙重新连接断开的外围设备而无需再次扫描ios

[英]can we reconnect disconnected peripheral using bluetooth without scanning again ios

I am making communication between ios device and hardware. 我正在ios设备和硬件之间进行通信。 If my iOS app and hardware are connected using BLE and connection was established. 如果使用BLE连接了我的iOS应用和硬件,并且已建立连接。 If hardware is out of range or connection got any issue then iOS app will recheck for available devices automatically and if iOS app got previously paired hardware device then will try to reconnect automatically. 如果硬件超出范围或连接出现任何问题,则iOS应用将自动重新检查可用设备,如果iOS应用先前已配对了硬件设备,则将尝试自动重新连接。 What should i do to perform such task. 我应该怎么做才能执行这样的任务。 I have gone through many links where they are describing to call did retrieve connected peripherals method but by calling this method will it get connected automatically? 我已经遍历了许多链接,它们描述要调用的方法did retrieve connected peripherals方法,但是通过调用此方法,它将自动连接吗?

Yes, you can reconnect a disconnected peripheral by queuing up a connect command to that peripheral. 是的,您可以通过将连接命令排队到该外围设备来重新连接该外围设备。 It will persist until your app connect to the peripheral, at which point the didConnectPeripheral will be called. 它会一直持续到您的应用程序连接到外围设备为止,此时将调用didConnectPeripheral。 No scan necessary. 无需扫描。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在iOS中如何在不使用硬件地址进行扫描的情况下连接到外围设备 - In iOS how to connect to Peripheral without scanning using the harware address Xamarin iOS 蓝牙外设扫描永远看不到任何外设 - Xamarin iOS Bluetooth peripheral scanning never sees any peripherals 在 iOS 中没有最后一个外围设备的情况下,后台扫描无法正常工作? - Background scanning not working without having last peripheral in iOS? corebluetooth 重新连接到外设并发现服务 ios - corebluetooth reconnect to Peripheral and discoverServices ios 我们可以使用 Core-Bluetooth 模拟“不可连接”的外围设备吗 - Can we simulate “non-connectable” peripheral using Core-Bluetooth 持续扫描 iOS 上的蓝牙设备以及在后台存储外围数据的最佳方法? - Best approach for continually scanning bluetooth devices on iOS as well as storing the peripheral data in background? 我可以将Motorola rs507连接为iOS中的蓝牙外围设备吗? - Can i connect motorola rs507 as a bluetooth peripheral in iOS? 如何使用Core Bluetooth在iOS中设置BLE外围设备的名称 - How to set the name of BLE peripheral in iOS using Core Bluetooth iOS:在我的应用程序中配对蓝牙外围设备,而不是使用设置 - iOS: pair a Bluetooth peripheral in my app, instead of using Settings 如何使用Objective-C在iOS上搜索外围蓝牙设备? - How to search for peripheral bluetooth devices, on iOS using objective-C?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM