Invoked when you discover the peripheral’s available services.
- iOS 5.0+
- macOS 10.7+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
- watchOS 4.0+
- Core Bluetooth
The peripheral that the services belong to.
If an error occurred, the cause of the failure.
This method is invoked when your app calls the
discover method. If the services of the peripheral are successfully discovered, you can access them through the peripheral’s
services property. If successful, the
error parameter is
nil. If unsuccessful, the
error parameter returns the cause of the failure.