4
votes

I am using core bluetooth framework in my iOS application project. I have following questions regarding bluetooth low energy-

  1. Is it possible for a single central to connect multiple peripherals in iOS?
  2. Can multiple central device connect with a single peripheral?
  3. Can a single iOS device act as central as well as peripheral at the same time?
  4. If yes, then what will happen if both of 2 such devices try to connect as central to each other?
  5. Can we communicate via BLE when the app is in background?
2

2 Answers

8
votes

Is it possible for a single central to connect multiple peripherals in iOS?

Yes.

Can multiple central device connect with a single peripheral?

That completely depends on whether the peripheral supports it (but for most common embedded devices, no).

Can a single iOS device act as central as well as peripheral at the same time?

Yes.

If yes, then what will happen if both of 2 such devices try to connect as central to each other?

They'll generally connect twice. In one connection, one will be central and one will be peripheral. In the other connection, the reverse. This is a pretty unusual way to design a system, but it is legal will often work, despite being illegal (see Youssif's comment below for reference).

Can we communicate via BLE when the app is in background?

Yes, within various restrictions.

0
votes
  1. Yes, it's possible to connect one Central to multiple Peripherals.
  2. Not confirmed.
    But single Peripheral can connect only with one Central device and multiple Peripherals can connect with one Central.
    It means that Central can communicate with multiple Peripherals at the same time.
  3. Yes, a single iOS device can work both as Central and Peripheral at the same time.
  4. It communicates one by one.
  5. Yes, we can communicate via BLE in background mode in iOS device.