diff options
Diffstat (limited to 'Waydio.m')
| -rw-r--r-- | Waydio.m | 21 |
1 files changed, 18 insertions, 3 deletions
@@ -42,16 +42,31 @@ Opens a Waydio connection. (Prepares peipheral for using the Waydio service, characteristics, and notifications) */ - (void)open { + [self.brspObject open]; //[[self delegate] OpenStatusChanged:YES]; - //[NSTimer scheduledTimerWithTimeInterval:5.0 target:self - // selector:@selector(processComplete) userInfo:nil repeats:YES]; + [NSTimer scheduledTimerWithTimeInterval:0.1 target:self + selector:@selector(checkWeight) userInfo:nil repeats:YES]; + [NSTimer scheduledTimerWithTimeInterval:1.0 target:self + selector:@selector(checkBattery) userInfo:nil repeats:YES]; + [NSTimer scheduledTimerWithTimeInterval:0.1 target:self + selector:@selector(checkButton) userInfo:nil repeats:YES]; }; +- (void)checkWeight { + +} +- (void)checkBattery { + +} +- (void)checkButton { + +} + /** Closes a Waydio connection. (Turns off notifications, etc) */ - (void)close { - + [self.brspObject close]; } @end
\ No newline at end of file |
