Core Bluetooth > Subscribed characteristic sometime not getting updated in Central
Core Bluetooth > Subscribed characteristic sometime not getting updated in Central
- Subject: Core Bluetooth > Subscribed characteristic sometime not getting updated in Central
- From: Allan Young <email@hidden>
- Date: Fri, 11 Jan 2013 09:29:11 -0800
- Acceptlanguage: en-US
- Thread-topic: Core Bluetooth > Subscribed characteristic sometime not getting updated in Central
Hello,
Running a Core Bluetooth test app on two iOS 6 devices, I notice that
*sometimes* I will not get a didUpdateValueForCharacteristic for a
characteristic that my central has subscribed to.
My peripheral sets up the service with this characteristic having notify
properties. (My service also has a writeable propertyŠsee below.)
The central, after connecting the peripheral and receiving
didDiscoverCharacteristicsForService, subscribes to the notify
characteristic. didUpdateNotificationStateForCharacteristic gets called,
with the characteristic's isNotifying flag reporting YES.
My central writes to the peripheral via the writeable characteristic
mentioned above.
In the peripheral's didReceiveWriteRequests, I read what the central wrote
to us, and in this same method I call
updateValue:forCharacteristic:onSubscribedCentrals: to write some data to
the notify characteristic that the central has subscribed to. The
updateValue:forCharacteristic:onSubscribedCentrals: call returns YES.
At this point, often in the central, didUpdateValueForCharacteristic does
not get called in this workflow.
Any ideas on this?
Thanks.
Allan
_______________________________________________
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