Discovers the specified characteristics of a service.
- iOS 5.0+
- macOS 10.7+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 4.0+
- Core Bluetooth
The service whose characteristics you want to discover.
You can provide an array of
CBUUID objects—representing characteristic UUIDs— in the
characteristic parameter. When you do, the peripheral returns only the characteristics of the service that match the provided UUIDs. If the
characteristic parameter is
nil, this method returns all characteristics of the service.
When the peripheral discovers one or more characteristics of the specified service, it calls the
peripheral(_: method of its delegate object. After the peripheral discovers the service’s characteristics, you can access them through the service’s