Reactive Bluetooth Low Energy Framework for iOS  1
RBTCharacteristic Class Reference

#import <RBTCharacteristic.h>

Inheritance diagram for RBTCharacteristic:

Instance Methods

(instancetype) - initWithCBCharacteristic:ofService:
 
(RACSignal *) - readValue
 Trigger to read the value of the characteristic. Returns a signal which completed when successful. More...
 
(void) - writeValue:
 Write data for a characteristic without response. More...
 
(RACSignal *) - writeValue:withResponse:
 Write data for a characteristic with response. More...
 
(RACSignal *) - setNotifyingStatus:
 Set the Characteristic to Notifying or not. Returns a signal which completed when successful. More...
 
(RACSignal *) - discoverDescriptors
 

Properties

RBTPeripheralperipheral
 Parrent peripheral. More...
 
RBTServiceservice
 Parrent Service. More...
 
CBCharacteristic * cbCharacteristic
 CoreBluetooth characteristic. More...
 
CBUUID * UUID
 Identifier of the characteristic. More...
 
BOOL notifying
 Flag whether the characteristic is notifying to centrals. More...
 
CBCharacteristicProperties properties
 Properties (access rights / freatures) of the characteristic (e.g. readable, writable...) More...
 
NSData * value
 Current value of the characteristic. More...
 
RACSignal * valueSignal
 Current value as signal. More...
 
RACSequence * descriptors
 Related descriptors of the characteristic. More...
 

Method Documentation

- (RACSignal *) discoverDescriptors

Retives the related descripors of the characteristic. Returns a signal which completed when successful.

- (instancetype) initWithCBCharacteristic: (CBCharacteristic *)  cbCharacteristic
ofService: (RBTService *)  service 

Designated initializer, should not be used manually.

- (RACSignal *) readValue

Trigger to read the value of the characteristic. Returns a signal which completed when successful.

- (RACSignal *) setNotifyingStatus: (BOOL)  notifying

Set the Characteristic to Notifying or not. Returns a signal which completed when successful.

- (void) writeValue: (NSData *)  data

Write data for a characteristic without response.

- (RACSignal *) writeValue: (NSData *)  data
withResponse: (BOOL)  response 

Write data for a characteristic with response.

Property Documentation

- (CBCharacteristic*) cbCharacteristic
readnonatomicassign

CoreBluetooth characteristic.

- (RACSequence *) descriptors
readnonatomicassign

Related descriptors of the characteristic.

- (BOOL) notifying
readwritenonatomicassign

Flag whether the characteristic is notifying to centrals.

- (RBTPeripheral*) peripheral
readnonatomicweak

Parrent peripheral.

- (CBCharacteristicProperties) properties
readnonatomicassign

Properties (access rights / freatures) of the characteristic (e.g. readable, writable...)

- (RBTService*) service
readnonatomicweak

Parrent Service.

- (CBUUID*) UUID
readnonatomicassign

Identifier of the characteristic.

- (NSData*) value
readatomicassign

Current value of the characteristic.

- (RACSignal*) valueSignal
readnonatomicassign

Current value as signal.


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