Reactive Bluetooth Low Energy Framework for iOS  1
RBTMutableService.h
Go to the documentation of this file.
1 //
2 // Created by Martin Stöber
3 // Copyright (c) 2014-2015 ma design GmbH & Co. KG. All rights reserved.
4 //
5 
6 #import <Foundation/Foundation.h>
7 #import <CoreBluetooth/CoreBluetooth.h>
8 
10 
11 
12 @interface RBTMutableService : NSObject
13 
15 @property(weak, nonatomic) RBTPeripheralModule *peripheralModule;
16 
18 @property(nonatomic, readonly) CBMutableService *cbService;
19 
21 @property(nonatomic) CBUUID *UUID;
22 
24 @property NSArray *includedServices;
25 
27 @property NSArray *characteristics;
28 
30 @property(nonatomic, getter=isPrimary) BOOL primaryService;
31 
33 @property(nonatomic, readonly, getter=isPublished) BOOL published;
34 
35 
37 - (instancetype)initPrimaryServiceWithUUID:(CBUUID *)UUID;
38 
40 - (instancetype)initWithUUID:(CBUUID *)UUID primary:(BOOL)primary;
41 
42 
44 - (void)addCharacteristic:(RBTMutableCharacteristic *)characteristic;
45 
47 - (void)addCharacteristics:(NSArray *)characteristics;
48 
50 - (void)removeCharacteristic:(RBTMutableCharacteristic *)characteristic;
51 
53 - (void)removeCharacteristics:(NSArray *)characteristics;
54 
56 - (void)addIncludedService:(RBTMutableService *)service;
57 
59 - (void)addIncludedServices:(NSArray *)includedServices;
60 
62 - (void)removeIncludedService:(RBTMutableService *)service;
63 
65 - (void)removeIncludedServices:(NSArray *)includedServices;
66 
67 @end
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