Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a WLXReactiveConnectionManager #28

Open
guidomb opened this issue Apr 10, 2015 · 0 comments
Open

Create a WLXReactiveConnectionManager #28

guidomb opened this issue Apr 10, 2015 · 0 comments

Comments

@guidomb
Copy link

guidomb commented Apr 10, 2015

Create a WLXReactiveConnectionManager that has its own public API.

@interface WLXReactiveConnectionManager : NSObject

@property (nonatomic, readonly) RACSignal * reconnecting;
@property (nonatomic, readonly) RACSingal * active;
@property (nonatomic, readonly) RACSignal * connected;
@property (nonatomic, readonly) RACSignal * connecting;
@property (nonatomic, readonly) CBPeripheral * peripheral;
@property (nonatomic, readonly) NSString * peripheralUUID;
@property (nonatomic) NSDictionary * connectionOptions;
@property (nonatomic, readonly) WLXServicesManager * servicesManager;
@property (nonatomic) BOOL allowReconnection;

- (instancetype)initWithConnectionManager:(id<WLXConnectionManager>)connectionManager;

- (RACSignal *)connectWithTimeout:(NSUInteger)timeout;

- (RACSignal *)connectAndDiscoverServicesWithTimeout:(NSUInteger)timeout

- (RACSignal *)disconnect;

@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant