9

The CBCentralManager retrieveConnectedPeripherals method says it gets "the list of the peripherals currently connected to the system." The definition of system is a bit ambiguous here.

Does this mean I get a list of peripherals connected to my app, or a list of peripherals connected to any app?

If I can get peripherals connected to another app, does this also mean multiple apps can connect to the same peripheral?

Can this only happen if the app is in the foreground, or do I need to allow for the possibility that a background app is sending commands to a peripheral I think my app owns?

1
  • 1
    Very good question. I couldn't agree more on the lack of documentation from Apple on this framework
    – chwi
    Commented Aug 8, 2012 at 1:49

1 Answer 1

7

BLE 4.0 enabled devices are usually connected with CBCentralManager unboundly. What is bounded and unbounded connection, you can know from this link. One BLE 4.0 enabled device can be connected with only one master device thus enhancing secured connectivity. You should follow this link. Whether in foreground of background, if the connection exists, the BLE slave device won't get connected with another app or device.

1
  • The last part is actually partly false. BLE peripherals connected to iOS will connect to multiple apps on the same system. You are correct that they will not connect to another iPhone, iPad, etc. So if you have 2 apps that see your peripheral, they can both connect to it. We had this issue a while back with 2 of our apps controlling the peripheral at the same time while both were running at the same time.
    – WrightsCS
    Commented Aug 28, 2013 at 18:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.