Reactive Bluetooth Low Energy Framework for iOS  1
RBTMutableCharacteristic Class Reference

#import <RBTMutableCharacteristic.h>

Inheritance diagram for RBTMutableCharacteristic:

Instance Methods

(instancetype) - initWithUUID:properties:value:permissions:
 
(void) - addDescriptor:
 Add a descriptor to this characteristic. More...
 
(void) - removeDescriptor:
 Remove a descriptor from this characteristic. More...
 
(BOOL) - notifySubscribedCentrals
 

Properties

RBTMutableServiceservice
 Parrent service, will be available after the characteristic is added to a service. More...
 
CBMutableCharacteristic * cbCharacteristic
 CoreBluetooth characteristic. More...
 
id< RBTCharacteristicRequestDelegatedelegate
 Delegate to handle read/write requests. Standard handling will be used if not set. More...
 
CBUUID * UUID
 Identifier of the characteristic. More...
 
CBCharacteristicProperties properties
 Properties of the characteristics. More...
 
CBAttributePermissions permissions
 Permissons of access of this characteristic. More...
 
BOOL published
 Flag whether the characteristic was added to a service an published to a peripheral module. More...
 
NSArray * descriptors
 Descriptors of the characteristic. More...
 
NSData * value
 Current value of the characteristic. More...
 

Method Documentation

- (void) addDescriptor: (RBTMutableDescriptor *)  descriptor

Add a descriptor to this characteristic.

- (instancetype) initWithUUID: (CBUUID *)  UUID
properties: (CBCharacteristicProperties)  properties
value: (NSData *)  value
permissions: (CBAttributePermissions)  permissions 

Create a new characteristic to publish to a peripheral module. If you want a dynamic value you must pass nil to value.

- (BOOL) notifySubscribedCentrals

Sends an updated characteristic value to one or more centrals, via a notification or indication. CBCharacteristicPropertyIndicate or CBCharacteristicPropertyNotify must be set to the properties. Returns YES when successful, NO when the not e.g. due a full queue.

- (void) removeDescriptor: (RBTMutableDescriptor *)  descriptor

Remove a descriptor from this characteristic.

Property Documentation

- (CBMutableCharacteristic*) cbCharacteristic
readnonatomicassign

CoreBluetooth characteristic.

- (id<RBTCharacteristicRequestDelegate>) delegate
readwritenonatomicweak

Delegate to handle read/write requests. Standard handling will be used if not set.

- (NSArray *) descriptors
readwriteatomic

Descriptors of the characteristic.

- (CBAttributePermissions) permissions
readwritenonatomicassign

Permissons of access of this characteristic.

- (CBCharacteristicProperties) properties
readwritenonatomicassign

Properties of the characteristics.

- (BOOL) published
readnonatomicassign

Flag whether the characteristic was added to a service an published to a peripheral module.

- (RBTMutableService*) service
readwritenonatomicweak

Parrent service, will be available after the characteristic is added to a service.

- (CBUUID *) UUID
readwritenonatomicassign

Identifier of the characteristic.

- (NSData *) value
readwriteatomic

Current value of the characteristic.


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