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
Post a Comment