ios - peripheral:didUpdateValueForCharacteristic can't be reached -


my code based on apple's corebluetooth sample code named "temperaturesenor". find phenomena if set peripheral repeat sending message, call peripheral:setnotifyvalue:yes forcharacteristic: , @ last peripheral:didupdatevalueforcharacteristic: called.
if call peripheral:setnotifyvalue:yes forcharacteristic: listen messages peripheral, set peripheral send message central, central not call peripheral:didupdatevalueforcharacteristic:. what's reason?

maybe should sure whether characteristic use send message has notify property decided peripheral.if characteristic doesn't has notify property still call "peripheral:setnotifyvalue:yes forcharacteristic:",you receive unknown error 2. if characteristic has notify property , call "peripheral:setnotifyvalue:yes forcharacteristic:",the central call "peripheral:didupdatevalueforcharacteristic:"


Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -