Reactive Bluetooth Low Energy Framework for iOS
1
|
#import <RBTPeripheral.h>
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 | |
RBTCentralModule * | centralModule |
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 |
- (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.
|
readnonatomicassign |
Advertisement data witch the peripheral send.
Provided by category RBTPeripheral(Protected).
|
readnonatomicassign |
CoreBluetooth periperhal.
|
readwritenonatomicweak |
Parrent central.
|
readnonatomicassign |
|
readnonatomicassign |
Provided by category RBTPeripheral(Protected).
|
readnonatomicassign |
Provided by category RBTPeripheral(Protected).
|
readnonatomicassign |
Provided by category RBTPeripheral(Protected).
|
readnonatomicassign |
Signal witch will be triggered when the peripheral will change its services.
|
readnonatomicassign |
Provided by category RBTPeripheral(Protected).
|
readnonatomicassign |
Provided by category RBTPeripheral(Protected).
|
readnonatomicassign |
Provided by category RBTPeripheral(Protected).
|
readnonatomicassign |
Provided by category RBTPeripheral(Protected).
|
readnonatomicassign |
Provided by category RBTPeripheral(Protected).
|
readnonatomicassign |
Unique identifier of this peripheral.
|
readnonatomicassign |
Name of this peripheral.
|
readnonatomicassign |
Current signal strength (RSSI)
Provided by category RBTPeripheral(Protected).
|
readnonatomicassign |
Already discovered services of this peripheral.