Wolox / WLXBluetoothDevice

A block-based wrapper of CoreBluetooth
http://www.wolox.com.ar
MIT License
25 stars 8 forks source link

Create a WLXReactiveDeviceDiscoverer #29

Open guidomb opened 9 years ago

guidomb commented 9 years ago
@interface WLXReactiveDeviceDiscoverer : NSObject

@property (nonatomic, readonly) RACSignal * discovering;
@property (nonatomic, readonly) NSArray * discoveredDevices;
@property (nonatomic) NSDictionary * scanOptions;

- (instancetype)initWithDeviceDiscoverer:(id<WLXDeviceDiscoverer>)deviceDiscoverer;

- (RACSignal *)discoverDevicesNamed:(NSString *)nameRegex withServices:(NSArray *)servicesUUIDs andTimeout:(NSUInteger)timeout;

- (RACSignal *)stopDiscoveringDevices;

@end