• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: Can I keep CBService and CBCharacteristics around?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Can I keep CBService and CBCharacteristics around?


  • Subject: RE: Can I keep CBService and CBCharacteristics around?
  • From: Steve Childerley <email@hidden>
  • Date: Mon, 03 Jun 2013 13:02:23 +0100
  • Organization: eklektek Ltd

Hi Etan,

I am trying to implement your recommendation to Rick earlier in the year.

The aim being simply to "keep CBService and CBCharacteristics around"
between connections.

I have, I believe, set my peripheral (BLE112 from BlueGiga) for encryption
only behaviour, however during the GATT interaction phase of my connection,
the iDevice requests permission to pair with the remote peripheral (via a
dialogue box).

This is something that I believe is not necessary if I simply wish to have
an encrypted link? If response to this dialogue is necessary to proceed, is
there anyway my App and respond to the dialogue - as I don't wish the use to
be aware of it?

Thanks, Steve.

-----Original Message-----
From: bluetooth-dev-bounces+steve=email@hidden
[mailto:bluetooth-dev-bounces+steve=email@hidden] On Behalf
Of Etan Kissling
Sent: 12 March 2013 10:24
To: Rick Mann
Cc: email@hidden Bluetooth
Subject: Re: Can I keep CBService and CBCharacteristics around?

Rick,

services and characteristics have to be re-discovered after every connect if
the link is not encrypted.

If encryption is active, you may find cached services / characteristics in
the peripheral's services and
their characteristics. Not sure about it, as I did not test that.

The peripheral object itself can only be reused if you still have the same
CBCentralManager instance.
If you create a new one, you can pass the UUID to retrievePeripherals in
order to get a new CBPeripheral
instance. Note that this does only work for devices that were previously
connected and, therefore, have
a UUID.

Etan

On 12.03.2013, at 07:49, Rick Mann <email@hidden> wrote:

> If I've scanned for my peripherals, connected, enumerated the services and
characteristics, can I keep those objects around for later reads? What
happens if the peripheral disconnects and reconnects?
>
> --
> Rick
>
>
>
>
> _______________________________________________
> 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

______________________________________________
This email has been scanned by Netintelligence
http://www.netintelligence.com/email

 _______________________________________________
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

  • Follow-Ups:
    • Re: Can I keep CBService and CBCharacteristics around?
      • From: András Kövi <email@hidden>
  • Prev by Date: Unable to discovery CC2541
  • Next by Date: Re: Can I keep CBService and CBCharacteristics around?
  • Previous by thread: Unable to discovery CC2541
  • Next by thread: Re: Can I keep CBService and CBCharacteristics around?
  • Index(es):
    • Date
    • Thread