I am trying to send a response from central to peripheral. The code was worked fine twice. Suddenly didReceiveWriteRequest
is not getting called. I didn't make any changes even.The properties given at peripheral are CBCharacteristicsPropertyNotify | CBCharacteristicsPropertyWriteWithResponse and CBCharacteristicPropertyWrite
. The permissions given are CBAttributePermissionsWriteable | CBAttributePermissionsReadable
. At central I have given setNotifyValue=YES in didDiscoverCharacteristicsForService
method. And this is how I try to write from central:
[peripheral writeValue:data forCharacteristic:self.peripheralCharacteristicn type:CBCharacteristicWriteWithResponse];
I can't find any mistakes in what I have done. For some reason, didReceiveWriteRequest is not getting called at Peripheral. Please advice.