• 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: Any better solutions to BLE caching?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Any better solutions to BLE caching?


  • Subject: Re: Any better solutions to BLE caching?
  • From: Etan Kissling <email@hidden>
  • Date: Fri, 19 Apr 2013 09:36:04 +0000
  • Thread-topic: Any better solutions to BLE caching?

Rick / Gareth / Arvydas

Apple points out the correct way to invalidate the GATT database cache:

Excerpt from https://developer.apple.com/hardwaredrivers/BluetoothDesignGuidelines.pdf
The iOS device implements the GAP Service Changed characteristic, because the database contents can change at any time. The Bluetooth accessory should therefore support the Characteristic Value Indication of this characteristic and, upon receiving indications, invalidate its database cache accordingly. See the Bluetooth 4.0 specification, Volume 3, Part G, Section 7.1.


Did not test this, but if it works, you should get a callback in the CBPeripheralDelegate (didInvalidateServices or something similar).


Etan


On 18.04.2013, at 20:49, Gareth MacLeod <email@hidden>
 wrote:

I have this problem as well, I'd love to hear any solutions other people have found, or even a good specification of what is cached, where, so I can work around it!


On Thu, Apr 18, 2013 at 2:46 PM, Rick Mann <email@hidden> wrote:
I got bitten by iOS's propensity to cache discovered stuff. I'm wondering it there's a better solution than rebooting to get it to truly re-discover characteristics?

It's really hard to develop with all this caching in place.

--
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



--
226.868.1112 | @garethmacleod | http://garethmacleod.com
_______________________________________________
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

  • Follow-Ups:
    • Re: Any better solutions to BLE caching?
      • From: Rick Mann <email@hidden>
References: 
 >Any better solutions to BLE caching? (From: Rick Mann <email@hidden>)
 >Re: Any better solutions to BLE caching? (From: Gareth MacLeod <email@hidden>)

  • Prev by Date: Re: Save CBCharacteristic to NSUserDefaults
  • Next by Date: Parsing Advertisement data
  • Previous by thread: Re: Any better solutions to BLE caching?
  • Next by thread: Re: Any better solutions to BLE caching?
  • Index(es):
    • Date
    • Thread