Class

CBService

A collection of data and associated behaviors for accomplishing a function or feature of a device.

Declaration

@interface CBService : CBAttribute

Overview

CBService objects represent services of a remote peripheral. Services are either primary or secondary and may contain multiple characteristics or included services (references to other services).

Topics

Identifying a Service

peripheral

The peripheral to which this service belongs.

isPrimary

A Boolean value that indicates whether the type of service is primary or secondary.

Accessing Service Data

characteristics

A list of characteristics discovered in this service.

includedServices

A list of included services discovered in this service.

Relationships

Inherits From

See Also

Services

CBMutableService

A service with writeable property values.

CBCharacteristic

A characteristic of a remote peripheral’s service.

CBMutableCharacteristic

A characteristic of a local peripheral’s service.

CBDescriptor

An object that provides further information about a remote peripheral’s characteristic.

CBMutableDescriptor

An object that provides additional information about a local peripheral’s characteristic.