It seems you had to re-discover characteristics every time you established a new connection.
Here are threads that discussed this problem previously.
http://prod.lists.apple.com/archives/bluetooth-dev/2013/Mar/msg00032.html
On Apr 17, 2013, at 1:25 PM, Jack Phan < email@hidden> wrote: The reason is that I don't want to scan again. I would like to reconnect but don't want to discover characteristics again because it takes too long. So when the user opens the app, I reconnect, no discover characteristics, but send characteristic values that I had saved to Peripheral.
Jack On Apr 16, 2013, at 10:14 PM, Khaos Tian < email@hidden> wrote: sorry for the typo.
I mean why don't you perform a discover characteristics action and then use that CBCharacteristic to perform action you want?
On Apr 17, 2013, at 1:06 PM, Jack Phan < email@hidden> wrote:
Hi Khaos,
Yes. I would like to save CBCharacteristic *myChar into NSUserDefauts and then load it when user open the app. Thanks,
Jack
On Apr 16, 2013, at 10:02 PM, Khaos Tian < email@hidden> wrote: May I ask why would you like to say CBCharacteristic into NSUserDefaults?
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
|