Reactive Bluetooth Low Energy Framework for iOS  1
RBTPeripheralModule Class Reference

#import <RBTPeripheralModule.h>

Inheritance diagram for RBTPeripheralModule:

Instance Methods

(RACSignal *) - startAdvertising
 Start advertising with all added services, completes when successful. More...
 
(RACSignal *) - startAdvertisingWithServices:
 Start advertising with the given services, completes when successful. More...
 
(void) - stopAdvertising
 Stop the advertising. More...
 
(RACSignal *) - addService:
 Add a service an publish it, completes when successful. More...
 
(void) - removeService:
 Remove a service. More...
 
(void) - removeServices:
 Remove the given services. More...
 
(void) - removeAllServices
 Remove all services. More...
 
(void) - respondToRequest:withResult:
 Respond to a read/write request with a result. Used this method when you handle the requests by yourself with RBTCharacteristicRequestDelegate. More...
 
(void) - createIBeaconWithUUID:major:minor:
 Create a iBeacon with the specific UUID, minor an major Value and advertise it. More...
 
(RBTMutableService *) - createBeaconServiceWithRSSI:
 

Properties

CBPeripheralManager * cbPeripheralManager
 CoreBluetooth manager. More...
 
RACSignal * peripheralState
 Current bluetooth state as Signal, last connection state will just send after subscription. More...
 
RACSignal * advertisingState
 Signal which is send when the peripheral is going to advertise or stopped advertising. More...
 
RACSignal * readyToUpdateSubscribersSignal
 Signal which is send when a the peripheral is ready to send values to the subscribed centrals. More...
 
RACSignal * didSubscribeToCharacteristicSignal
 Signal which is send when a central subscribe to a characteristic of this peripheral. More...
 
RACSignal * didUnsubscribeFromCharacteristicSignal
 Signal which is send when a central unsubscribe to a characteristic of this peripheral. More...
 
NSString * name
 
NSArray * services
 Array of all added Services. More...
 

Method Documentation

- (RACSignal *) addService: (RBTMutableService *)  service

Add a service an publish it, completes when successful.

- (RBTMutableService *) createBeaconServiceWithRSSI: (signed char)  rssi

Create a beacon service, witch contain one characteristic with the given RSSI. This value should be the measured RSSI of the device from one meter distance.

Provided by category RBTPeripheralModule(Beacon).

- (void) createIBeaconWithUUID: (CBUUID *)  UUID
major: (CLBeaconMajorValue)  major
minor: (CLBeaconMinorValue)  minor 

Create a iBeacon with the specific UUID, minor an major Value and advertise it.

Provided by category RBTPeripheralModule(Beacon).

- (void) removeAllServices

Remove all services.

- (void) removeService: (RBTMutableService *)  service

Remove a service.

- (void) removeServices: (NSArray *)  services

Remove the given services.

- (void) respondToRequest: (CBATTRequest *)  request
withResult: (CBATTError)  result 

Respond to a read/write request with a result. Used this method when you handle the requests by yourself with RBTCharacteristicRequestDelegate.

- (RACSignal *) startAdvertising

Start advertising with all added services, completes when successful.

- (RACSignal *) startAdvertisingWithServices: (NSArray *)  services

Start advertising with the given services, completes when successful.

- (void) stopAdvertising

Stop the advertising.

Property Documentation

- (RACSignal*) advertisingState
readnonatomicassign

Signal which is send when the peripheral is going to advertise or stopped advertising.

- (CBPeripheralManager*) cbPeripheralManager
readnonatomicassign

CoreBluetooth manager.

- (RACSignal*) didSubscribeToCharacteristicSignal
readnonatomicassign

Signal which is send when a central subscribe to a characteristic of this peripheral.

Provided by category RBTPeripheralModule(Protected).

- (RACSignal*) didUnsubscribeFromCharacteristicSignal
readnonatomicassign

Signal which is send when a central unsubscribe to a characteristic of this peripheral.

Provided by category RBTPeripheralModule(Protected).

- (NSString*) name
readwritenonatomicassign
- (RACSignal*) peripheralState
readnonatomicassign

Current bluetooth state as Signal, last connection state will just send after subscription.

- (RACSignal*) readyToUpdateSubscribersSignal
readnonatomicassign

Signal which is send when a the peripheral is ready to send values to the subscribed centrals.

Provided by category RBTPeripheralModule(Protected).

- (NSArray *) services
readatomicassign

Array of all added Services.


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