diff options
| author | Tim Redfern <tim@Adaptics.local> | 2013-09-18 18:00:46 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@Adaptics.local> | 2013-09-18 18:00:46 +0100 |
| commit | cb75fd2a2f258a1a4e9f307840842f582838250b (patch) | |
| tree | 523d8e2aad844b7826b80c69cad4ad088a448478 | |
| parent | 31b03c8a1234b966ec56f5da316d93a9259c5d71 (diff) | |
populating implementation
| -rwxr-xr-x | .DS_Store | bin | 6148 -> 6148 bytes | |||
| -rw-r--r-- | Waydio.m | 21 | ||||
| -rwxr-xr-x | sampleclient/ConnectionController.m | 4 | ||||
| -rw-r--r-- | waydio_comms_demo.xcodeproj/project.xcworkspace/xcuserdata/tim.xcuserdatad/UserInterfaceState.xcuserstate | bin | 40719 -> 41393 bytes |
4 files changed, 20 insertions, 5 deletions
| Binary files differ @@ -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 diff --git a/sampleclient/ConnectionController.m b/sampleclient/ConnectionController.m index 170b0a0..b56f898 100755 --- a/sampleclient/ConnectionController.m +++ b/sampleclient/ConnectionController.m @@ -50,11 +50,11 @@ - (void)centralManager:(CBCentralManager *)central didConnectPeripheral:(CBPeripheral *)peripheral { //call the open function to prepare the brsp service - //[self.brspObject open]; + [self.waydioObject open]; } - (void)centralManager:(CBCentralManager *)central didDisconnectPeripheral:(CBPeripheral *)peripheral error:(NSError *)error { - //[self.brspObject close]; + [self.waydioObject close]; [self.navigationController popViewControllerAnimated:YES]; } diff --git a/waydio_comms_demo.xcodeproj/project.xcworkspace/xcuserdata/tim.xcuserdatad/UserInterfaceState.xcuserstate b/waydio_comms_demo.xcodeproj/project.xcworkspace/xcuserdata/tim.xcuserdatad/UserInterfaceState.xcuserstate Binary files differindex f46f38f..cde4f07 100644 --- a/waydio_comms_demo.xcodeproj/project.xcworkspace/xcuserdata/tim.xcuserdatad/UserInterfaceState.xcuserstate +++ b/waydio_comms_demo.xcodeproj/project.xcworkspace/xcuserdata/tim.xcuserdatad/UserInterfaceState.xcuserstate |
