Re: cached services and cached characteristics
Re: cached services and cached characteristics
- Subject: Re: cached services and cached characteristics
- From: András Kövi <email@hidden>
- Date: Thu, 18 Oct 2012 14:55:50 +0200
Hi Roman,
I think the note you mention from the wwdc presentation should be interpreted like:
"The discovered services will be stored by the central manager, so next time when you start discovery, the request will not necessarily need to go out to the peripheral."
That is, you still have to do the discover services in your code, however, the central will return the values stored in its cache without going out to the peripheral.
In short, you must call the discoverServices in your code. Storing the returned values is not going to work.
I can't confirm that this is the case but I strongly suspect.
Regards,
Andras
2012/10/18 Roman Curkin
<email@hidden>
Hello, i post two threads on the bluetooth-forum but got no answer.
My problem:
iPhone 4s is a central and scan for peripheral
as peripheral i use the CSR1000- at this point i use random resolvable advertising address
so first didDiscoverPeripheral
-peripheral=null-> okay, no problem-> connectPeripheral->didConnectPeripheral->Pairing appears(IOS6 read some characteristics without my control)->discoverServices->didDiscoverServices-> all thinks are good and i can write or read something.
after connection i "cancelPeripheralConnectioN"
so scan again:
second didDiscoverPeripheral:
-peripheral:->not NULL->okay, i got a UUID from peripheral-> connectPeripheral->DidConnect->discoverServices-> didDiscoverServices never appears.
try to write or read something->failed->peripheral.services=NIL
try to save the service and characteristic->CoreBluetooth[WARNING] <CBConcreteCharacteristic: 0x210f77e0> is not a valid characteristic for peripheral <CBConcretePeripheral: 0x21046190 UUID = <CFUUID 0x21097780> D5753532-9E1D-6C0A-3378-C15977F3E057, Name = "Peripheral", IsConnected = YES>
so no valid for this peripheral->
i look at the wwdc2012, at the last page-> central-caches services and characteristics
how i can see the cached services and characteristics?
thank you for help
RomanC
_______________________________________________
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