From e89f9947ae51eee20902432c4758b2d8e24185ea Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Fri, 11 Oct 2013 17:46:32 -0700 Subject: talking to the device --- Waydio.h | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'Waydio.h') diff --git a/Waydio.h b/Waydio.h index 33dbecc..346d687 100644 --- a/Waydio.h +++ b/Waydio.h @@ -17,6 +17,7 @@ #import #import +#import "AppDelegate.h" #import "Brsp.h" @class Waydio; @@ -63,9 +64,16 @@ /** Class used to interact with the Waydio peripheral */ -@interface Waydio : NSObject { +@interface Waydio : NSObject { id delegate; + BrspMode _lastMode; + NSTimer * weighTimer; + NSTimer * batteryTimer; + NSTimer * buttonTimer; + int command; + bool button; + int battery; } /** @@ -124,7 +132,10 @@ /** Opens a Waydio connection. (Prepares peipheral for using the Waydio service, characteristics, and notifications) */ -- (void)open; +//- (void)open; + +- (void)sendCommand:(NSString *)str; + /** Closes a Waydio connection. (Turns off notifications, etc) @@ -132,5 +143,4 @@ - (void)close; - @end -- cgit v1.2.3