Reusing CBPeripheral across multiple re-connections
Reusing CBPeripheral across multiple re-connections
- Subject: Reusing CBPeripheral across multiple re-connections
- From: Anthony Stevens <email@hidden>
- Date: Fri, 06 Dec 2013 16:55:48 -0800
Hi,
We've seen two different approaches to re-connecting to peripheral once a connection is lost (e.g. our device moved too far from the iTouch/iPhone).
1. Scan before each reconnect to obtain a CBPeripheral. Connect using this new CBPeripheral.
2. Scan just once to obtain a CBPeripheral and reuse that peripheral for each subsequent reconnection.
We are opting for scenario 2 but wanted to hear what others are doing. It seems to work fine for us so far…even when placed into the background. Why rescan if we don't need to.
Is this the same approach the majority of you are taking?
Thanks
Anthony
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden