Instance Method

peripheral:didUpdateValueForDescriptor:error:

Tells the delegate that retrieving a specified characteristic descriptor’s value succeeded.

Declaration

- (void)peripheral:(CBPeripheral *)peripheral didUpdateValueForDescriptor:(CBDescriptor *)descriptor error:(NSError *)error;

Parameters

peripheral

The peripheral providing this information.

descriptor

The characteristic descriptor containing the value.

error

The reason the call failed, or nil if no error occurred.

Discussion

Core Bluetooth invokes this method when your app calls the readValueForDescriptor: method. If successful, the error parameter is nil. If unsuccessful, the error parameter returns the cause of the failure.

See Also

Retrieving Characteristic and Descriptor Values

- peripheral:didUpdateValueForCharacteristic:error:

Tells the delegate that retrieving the specified characteristic’s value succeeded, or that the characteristic’s value changed.