Re: Avoiding to discover services and characteristics with iOS7
Re: Avoiding to discover services and characteristics with iOS7
- Subject: Re: Avoiding to discover services and characteristics with iOS7
- From: William Henderson <email@hidden>
- Date: Tue, 20 May 2014 14:44:31 -0700
That could be. Might also be that after a few minutes it will blow out the entire cache regardless of how much of the packet has changed. I haven’t tested this, but this is what I recall hearing at WWDC.
On Tuesday, May 20, 2014 at 2:24 PM, Zach Dennis wrote:
On Mon, May 19, 2014 at 10:37 PM, William Henderson
<email@hidden> wrote:
If I recall correctly, caching is used (automatically, as Jason said) only for paired devices who haven’t changed (any of) their advertised characteristics or services.
Experimentally this doesn't seem to true. If keep the same advertiser's address but change everything else about the advertising device then iOS will use cached data in some places (like the local name) and you have to either clear the bluetooth cache or wait a few minutes (I'm not sure if it's time based on a # of advertisement threshold before iOS kills the cache in certain instances).
Zach
On Monday, May 19, 2014 at 3:55 PM, Jason Conn wrote:
- Can I save a characteristic and use this property without services and characteristics discovering step ?
No. CBService/Characteristics/Descriptors are only valid within the context of the connection in which they were discovered.
You need to go through the same steps and the cache will be used where appropriate.
On May 19, 2014, at 3:51 PM, Fred Visticot <
email@hidden> wrote:
I know that iOS7 has introduced caching mechanisms in the CoreBluetooth.
1. I reconnect to a previous connected device with the peripheral identifier.
2. Connection is fast (100ms)
3. I need to read a characteristic value
- Is it mandatory to discover services and characteristics before reading a value ?
In my case it takes 1.5s to read the value ?
- Can I save a characteristic and use this property without services and characteristics discovering step ?
Is the iOS7 caching mechanism « transparent » / « free » meaning that discovering services and characteristics is using cache ?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Help/Unsubscribe/Update your Subscription:
_______________________________________________
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
--
@zachdennis
http://www.continuousthinking.com
http://www.mutuallyhuman.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