summaryrefslogtreecommitdiff
path: root/Waydio.m
diff options
context:
space:
mode:
Diffstat (limited to 'Waydio.m')
-rw-r--r--Waydio.m21
1 files changed, 18 insertions, 3 deletions
diff --git a/Waydio.m b/Waydio.m
index 6cb736c..161aaee 100644
--- a/Waydio.m
+++ b/Waydio.m
@@ -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