diff options
| author | Tim Redfern <tim@Adaptics.local> | 2013-10-11 17:46:32 -0700 |
|---|---|---|
| committer | Tim Redfern <tim@Adaptics.local> | 2013-10-11 17:46:32 -0700 |
| commit | e89f9947ae51eee20902432c4758b2d8e24185ea (patch) | |
| tree | 3b4661b0277019e568648ce6ab44592494e552e7 /Waydio.h | |
| parent | cb75fd2a2f258a1a4e9f307840842f582838250b (diff) | |
Diffstat (limited to 'Waydio.h')
| -rw-r--r-- | Waydio.h | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -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 |
