Instance Method

peripheral:didDiscoverIncludedServicesForService:error:

Tells the delegate that discovering included services within the indicated service completed.

Declaration

- (void)peripheral:(CBPeripheral *)peripheral didDiscoverIncludedServicesForService:(CBService *)service error:(NSError *)error;

Parameters

peripheral

The peripheral providing this information.

service

The CBService object containing the included service.

error

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

Discussion

Core Bluetooth invokes this method when your app calls the discoverIncludedServices:forService: method. If the peripheral successfully discovers services, you can access them through the service’s includedServices property. If successful, the error parameter is nil. If unsuccessful, the error parameter returns the cause of the failure.

See Also

Discovering Services

- peripheral:didDiscoverServices:

Tells the delegate that peripheral service discovery succeeded.