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

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -