Re: Central and Peripheral at the same time?
Re: Central and Peripheral at the same time?
- Subject: Re: Central and Peripheral at the same time?
- From: Etan Kissling <email@hidden>
- Date: Fri, 11 Jan 2013 16:02:34 +0000
- Thread-topic: Central and Peripheral at the same time?
Darren,
If you want to perform iPhone to iPhone communication only, I suggest using GameKit for it.
You will have an increased throughput, as classic Bluetooth is used as a transport, and don't have
to worry about specifying who is master and who is slave.
If you want to stay with CoreBluetooth: at least from the Bluetooth Core Specification, a device is
allowed to scan and advertise at the same time. I have not yet tried it under iOS, but can tell for your
background requirement that scanning times are pretty slow while backgrounded (around 55x
advertisement interval). Also don't forget to stop scanning and advertising as soon as you establish
a connection.
Etan
On 10.01.2013, at 23:59, Darren Jones <email@hidden> wrote:
> Is it possible to use CBCentral scanning and CBPeripheral advertising at the same time? (Also in the background)
>
> If I wanted 2 random iPhones to communicate and both where set to Central or both to Peripheral they wouldn't see each other. I'd like to remove that they would both have to know which method to activate.
>
> Is that possible?
>
> Thanks
>
> Sent from my iPhone 5
> _______________________________________________
> 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
_______________________________________________
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