Mitch Wolfe
Mitch Wolfe

Reputation: 139

Can I connect to a BLE device and broadcast an iBeacon at the same time?

I am using an iPad as an iBeacon with CoreLocation. Is it possible to have the iPad connect to another BLE device (non iBeacon) using CoreBluetooth?

Upvotes: 0

Views: 298

Answers (1)

davidgyoung
davidgyoung

Reputation: 64916

Yes. An iOS Bluetooth "Central" can connect to a Bluetooth LE Peripheral, and at the very same time act as a Bluetooth "Peripheral" and advertise an iBeacon packet. CoreBluetooth supports both modes simultaneously.

I have built several apps that do exactly this.

The only trick is that to advertise, the app must be in the foreground with the screen on.

Upvotes: 1

Related Questions