• 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: Louis Gerbarg <email@hidden>
  • Date: Fri, 19 Apr 2013 19:16:40 -0400

On Fri, Apr 19, 2013 at 5:07 PM, Rick Mann <email@hidden> wrote:

On Apr 19, 2013, at 02:36 , Etan Kissling <email@hidden> wrote:

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

So, there's no such delegate method, but I think the thing to do is get the value change indication for that specific characteristic. I'll try to implement that, and hopefully the caching won't prevent that characteristic from showing up.

The method is  -[CBPeripheralDelegate peripheralDidInvalidateServices :], and it was added in iOS 6.0. Not only is it called, but if your peripheral updates a GAP Service Changed characteristic and the app does not implement it you get a console message.

While this is a somewhat workable solution to the problem at hand, it is still a poor solution. The inability to reset the state of the BT devices for testing (clearing the UUID mappings, deleting cached properties, etc) makes testing very difficult.

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

References: 
 >Any better solutions to BLE caching? (From: Rick Mann <email@hidden>)
 >Re: Any better solutions to BLE caching? (From: Gareth MacLeod <email@hidden>)
 >Re: Any better solutions to BLE caching? (From: Etan Kissling <email@hidden>)
 >Re: Any better solutions to BLE caching? (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: Any better solutions to BLE caching?
  • Next by Date: Connect issue on iOS 6.1.3 & iPhone 5
  • Previous by thread: Re: Any better solutions to BLE caching?
  • Next by thread: BLE BER/PER and power
  • Index(es):
    • Date
    • Thread