Reactive Bluetooth Low Energy Framework for iOS  1
RBTPeripheral Class Reference

#import <RBTPeripheral.h>

Inheritance diagram for RBTPeripheral:

Instance Methods

(instancetype) - initWithPeripheral:fromCentralModule:
 
(RACSignal *) - updateRSSI
 Update the RSSI, completes when successful. More...
 
(RACSignal *) - updateRSSIWithTimeInterval:
 Update the RSSI repetitive; Use -stopUpdateRSSI to cancel the update. More...
 
(void) - stopUpdateRSSI
 Stop Update the RSSI. More...
 
(RACSignal *) - discoverServices
 Will discover all services, completes when successful. More...
 
(RACSignal *) - discoverServicesWithUUIDs:
 Will discover services with the given UUIDs, completes when successful. More...
 
(RBTService *) - serviceWithUUUID:
 Retrieves a service with the given UUID. It must be discovered first. More...
 
(RACSignal *) - connect
 Connect to a Peripheral, completes when successful. More...
 
(RACSignal *) - disconnect
 Trigger a disconnect from a peripheral, completes when successful. (Due iOS restrictions this can take up tp 60sec.) More...
 
(NSNumber *) - calculateDistance
 Calculates the distance of the peripheral in meters. More...
 

Properties

RBTCentralModulecentralModule
 Parrent central. More...
 
CBPeripheral * cbPeripheral
 CoreBluetooth periperhal. More...
 
NSUUID * identifier
 Unique identifier of this peripheral. More...
 
NSString * name
 Name of this peripheral. More...
 
RACSignal * connectionState
 
NSNumber * RSSI
 Current signal strength (RSSI) More...
 
NSDictionary * advertismentData
 Advertisement data witch the peripheral send. More...
 
RACSequence * services
 Already discovered services of this peripheral. More...
 
RACSignal * didModifyServices
 Signal witch will be triggered when the peripheral will change its services. More...
 
RACSignal * didDiscoverCharacteristicsSignal
 
RACSignal * didDiscoverIncludedServicesSignal
 
RACSignal * didUpdateValueForCharacteristicSignal
 
RACSignal * didWriteValueForCharacteristicSignal
 
RACSignal * didUpdateValueForDescriptorSignal
 
RACSignal * didUpdateNotificationState
 
RACSignal * didDiscoverDescriptorsForCharacteristic
 
RACSignal * didWriteValueForDescriptor
 

Method Documentation

- (NSNumber *) calculateDistance

Calculates the distance of the peripheral in meters.

Provided by category RBTPeripheral(Beacon).

- (RACSignal *) connect

Connect to a Peripheral, completes when successful.

- (RACSignal *) disconnect

Trigger a disconnect from a peripheral, completes when successful. (Due iOS restrictions this can take up tp 60sec.)

- (RACSignal *) discoverServices

Will discover all services, completes when successful.

- (RACSignal *) discoverServicesWithUUIDs: (NSArray *)  serviceUUIDs

Will discover services with the given UUIDs, completes when successful.

- (instancetype) initWithPeripheral: (CBPeripheral *)  peripheral
fromCentralModule: (RBTCentralModule *)  centralModule 

Designated initializer

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

- (RBTService *) serviceWithUUUID: (CBUUID *)  uuid

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

- (void) stopUpdateRSSI

Stop Update the RSSI.

- (RACSignal *) updateRSSI

Update the RSSI, completes when successful.

- (RACSignal *) updateRSSIWithTimeInterval: (NSTimeInterval)  interval

Update the RSSI repetitive; Use -stopUpdateRSSI to cancel the update.

Property Documentation

- (NSDictionary*) advertismentData
readnonatomicassign

Advertisement data witch the peripheral send.

Provided by category RBTPeripheral(Protected).

- (CBPeripheral*) cbPeripheral
readnonatomicassign

CoreBluetooth periperhal.

- (RBTCentralModule*) centralModule
readwritenonatomicweak

Parrent central.

- (RACSignal*) connectionState
readnonatomicassign
- (RACSignal*) didDiscoverCharacteristicsSignal
readnonatomicassign

Provided by category RBTPeripheral(Protected).

- (RACSignal*) didDiscoverDescriptorsForCharacteristic
readnonatomicassign

Provided by category RBTPeripheral(Protected).

- (RACSignal*) didDiscoverIncludedServicesSignal
readnonatomicassign

Provided by category RBTPeripheral(Protected).

- (RACSignal*) didModifyServices
readnonatomicassign

Signal witch will be triggered when the peripheral will change its services.

- (RACSignal*) didUpdateNotificationState
readnonatomicassign

Provided by category RBTPeripheral(Protected).

- (RACSignal*) didUpdateValueForCharacteristicSignal
readnonatomicassign

Provided by category RBTPeripheral(Protected).

- (RACSignal*) didUpdateValueForDescriptorSignal
readnonatomicassign

Provided by category RBTPeripheral(Protected).

- (RACSignal*) didWriteValueForCharacteristicSignal
readnonatomicassign

Provided by category RBTPeripheral(Protected).

- (RACSignal*) didWriteValueForDescriptor
readnonatomicassign

Provided by category RBTPeripheral(Protected).

- (NSUUID *) identifier
readnonatomicassign

Unique identifier of this peripheral.

- (NSString *) name
readnonatomicassign

Name of this peripheral.

- (NSNumber*) RSSI
readnonatomicassign

Current signal strength (RSSI)

Provided by category RBTPeripheral(Protected).

- (RACSequence *) services
readnonatomicassign

Already discovered services of this peripheral.


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