Reactive Bluetooth Low Energy Framework for iOS  1
RBTService Class Reference

#import <RBTService.h>

Inheritance diagram for RBTService:

Instance Methods

(instancetype) - initWithCBService:ofPeripheral:
 
(RACSignal *) - discoverAllCharacteristics
 
(RACSignal *) - discoverCharacteristicsWithUUIDs:
 
(RACSignal *) - discoverAllIncludedServices
 
(RACSignal *) - discoverIncludedServicesWithUUIDs:
 
(RBTCharacteristic *) - characteristicWithUUUID:
 Retrieves a characteristic with the given UUID. It must be discovered first. More...
 

Properties

RBTPeripheralperipheral
 
CBService * cbService
 CoreBluetooth service. More...
 
CBUUID * UUID
 Unique identifier of this Service. More...
 
BOOL primaryService
 Flag whether the service is primary or secondary (related to another service) More...
 
RACSequence * characteristics
 Sequence of discovered characteristics. More...
 
RACSequence * includedServices
 Sequence of discovered included services. More...
 

Method Documentation

- (RBTCharacteristic *) characteristicWithUUUID: (CBUUID *)  uuid

Retrieves a characteristic with the given UUID. It must be discovered first.

- (RACSignal *) discoverAllCharacteristics

Discover all characteristics of this service. Returns a signal which completed when successful.

- (RACSignal *) discoverAllIncludedServices

Discover all included services of this service. Returns a signal which completed when successful.

- (RACSignal *) discoverCharacteristicsWithUUIDs: (NSArray *)  UUIDs

Discover all characteristics with the given CBUUIDs. Returns a signal which completed when successful.

- (RACSignal *) discoverIncludedServicesWithUUIDs: (NSArray *)  UUIDs

Discover all included services with the given CBUUIDs. Returns a signal which completed when successful.

- (instancetype) initWithCBService: (CBService *)  cbService
ofPeripheral: (RBTPeripheral *)  peripheral 

Designated initializer

RBTService should not be created manually. It will be created by discovering a peripheral.

Property Documentation

- (CBService*) cbService
readnonatomicassign

CoreBluetooth service.

- (RACSequence *) characteristics
readnonatomicassign

Sequence of discovered characteristics.

- (RACSequence *) includedServices
readnonatomicassign

Sequence of discovered included services.

- (RBTPeripheral*) peripheral
readnonatomicweak
- (BOOL) primaryService
readnonatomicassign

Flag whether the service is primary or secondary (related to another service)

- (CBUUID *) UUID
readnonatomicassign

Unique identifier of this Service.


The documentation for this class was generated from the following files: