summaryrefslogtreecommitdiff
path: root/Waydio.h
diff options
context:
space:
mode:
authorTim Redfern <tim@Adaptics.local>2013-10-11 17:46:32 -0700
committerTim Redfern <tim@Adaptics.local>2013-10-11 17:46:32 -0700
commite89f9947ae51eee20902432c4758b2d8e24185ea (patch)
tree3b4661b0277019e568648ce6ab44592494e552e7 /Waydio.h
parentcb75fd2a2f258a1a4e9f307840842f582838250b (diff)
talking to the deviceHEADmaster
Diffstat (limited to 'Waydio.h')
-rw-r--r--Waydio.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/Waydio.h b/Waydio.h
index 33dbecc..346d687 100644
--- a/Waydio.h
+++ b/Waydio.h
@@ -17,6 +17,7 @@
#import <Foundation/Foundation.h>
#import <CoreBluetooth/CoreBluetooth.h>
+#import "AppDelegate.h"
#import "Brsp.h"
@class Waydio;
@@ -63,9 +64,16 @@
/**
Class used to interact with the Waydio peripheral
*/
-@interface Waydio : NSObject <CBPeripheralDelegate> {
+@interface Waydio : NSObject <CBPeripheralDelegate, BrspDelegate, CBCentralManagerDelegate> {
id <WaydioDelegate> 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