6 #import <Foundation/Foundation.h>
7 #import <CoreBluetooth/CoreBluetooth.h>
18 @property(nonatomic, readonly) CBMutableService *
cbService;
21 @property(nonatomic) CBUUID *
UUID;
33 @property(nonatomic, readonly, getter=isPublished) BOOL
published;
37 - (instancetype)initPrimaryServiceWithUUID:(CBUUID *)UUID;
40 - (instancetype)initWithUUID:(CBUUID *)UUID primary:(BOOL)primary;
44 - (void)addCharacteristic:(RBTMutableCharacteristic *)characteristic;
47 - (void)addCharacteristics:(NSArray *)characteristics;
50 - (void)removeCharacteristic:(RBTMutableCharacteristic *)characteristic;
53 - (void)removeCharacteristics:(NSArray *)characteristics;
59 - (void)addIncludedServices:(NSArray *)includedServices;
65 - (void)removeIncludedServices:(NSArray *)includedServices;
NSArray * includedServices
Related included services, witch were added to this service.
Definition: RBTMutableService.h:24
CBMutableService * cbService
CoreBluetooth service.
Definition: RBTMutableService.h:18
CBUUID * UUID
Unique identifier.
Definition: RBTMutableService.h:21
Definition: RBTMutableService.h:12
RBTPeripheralModule * peripheralModule
Parrent perpheral, will be available after the service was added.
Definition: RBTMutableService.h:15
BOOL published
Flag whether the services was added and published to a peripheral module.
Definition: RBTMutableService.h:33
Definition: RBTMutableCharacteristic.h:15
Definition: RBTPeripheralModule.h:13
NSArray * characteristics
Related characteristics, witch were added to this service.
Definition: RBTMutableService.h:27
BOOL primaryService
Flag whether the service is primary or secondary (related to another service)
Definition: RBTMutableService.h:30