summaryrefslogtreecommitdiff
path: root/Waydio.m
blob: 6cb736c1c55c546516718301b1a0afeeb3e36ef7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//
//  Waydio.m
//  waydio_comms_demo
//
//  Created by Tim Redfern on 09/09/2013.
//
//

#import "Waydio.h"

@implementation Waydio


@synthesize delegate;

- (id)initWithPeripheral:(CBPeripheral*)peripheral {
    return self;
}

/**
 An alternate initializer for this class which sets the input and output buffer sizes.
 Use this if the default buffer sizes are not adequate
 @param peripheral  The CBPeripheral object to be used
 @param in_size     The fixed input buffer size to use
 @param out_size    The fixed output buffer size to use
 @return self
 @note  Changes peripheral.delegate to self.  If peripheral.delegate is set another object, initWithPeripheral and open will have to be called again
 to reinitialize.
 @note  The default input and output buffer sizes are 1024 bytes
 */
- (id)initWithPeripheral:(CBPeripheral*)peripheral InputBufferSize:(NSUInteger)in_size OutputBufferSize:(NSUInteger)out_size {
    //
    return self;
}

+ (CBUUID *) brspServiceUUID{
    return [CBUUID UUIDWithString:BRSP_SERVICE_UUID];
}


/**
 Opens a Waydio connection. (Prepares peipheral for using the Waydio service, characteristics, and notifications)
 */
- (void)open {
    //[[self delegate] OpenStatusChanged:YES];
    //[NSTimer scheduledTimerWithTimeInterval:5.0 target:self
    //                               selector:@selector(processComplete) userInfo:nil repeats:YES];
};

/**
 Closes a Waydio connection. (Turns off notifications, etc)
 */
- (void)close {
    
}

@end