Instance Method

peripheral(_:didDiscoverDescriptorsFor:error:)

Invoked when you discover the descriptors of a specified characteristic.

Declaration

optional func peripheral(_ peripheral: CBPeripheral, didDiscoverDescriptorsFor characteristic: CBCharacteristic, error: Error?)

Parameters

peripheral

The peripheral providing this information.

characteristic

The characteristic that the characteristic descriptors belong to.

error

If an error occurred, the cause of the failure.

Discussion

This method is invoked when your app calls the discoverDescriptors(for:) method. If the characteristic descriptors of the specified characteristic are successfully discovered, you can access them through the characteristic’s descriptors property. If successful, the error parameter is nil. If unsuccessful, the error parameter returns the cause of the failure.

See Also

Discovering Characteristics and Characteristic Descriptors

func peripheral(CBPeripheral, didDiscoverCharacteristicsFor: CBService, error: Error?)

Invoked when you discover the characteristics of a specified service.