Re: cached services and cached characteristics
Re: cached services and cached characteristics
- Subject: Re: cached services and cached characteristics
- From: Roman Curkin <email@hidden>
- Date: Thu, 18 Oct 2012 15:20:26 +0200
Thanks for reply András Kövi,
okay i understand what you say and know it makes sense.
But i always do the "discoverServices" but sometimes, the didDiscoverServices not appears.
but it seems i solved my own problem:
my peripheral do advertising->resolvable address
my iPhone scan first and when the UUID is not null i connect to it.
so at this point i noticed 5 minutes ago, that my peripheral sometimes restarts.
so my iPhone and Peripheral are paired-> both are saved the link keys. when the peripheral is restarts, then the links keys are not valid anymore, because the peripheral got new keys!
so at this moment, when the peripheral restarts, i expect that the uuid of the peripheral is NULL, but it isn´t null. i connect to the peripheral with wrong keys. i don't know why but it works at this point.
so what i must do: go preference->bluetooth->delete the paired peripheral.
-scan again->connect->pairing->discoverServices ... and so far.
how to check it-> if the central scan, and found my peripheral as NOT Null, something is wrong!
-sometimes i must restart the iPhone, because it always resolve the address with wrong key.
it works with resolvable Address->changed after connection
thanks you very very much!
_______________________________________________
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